Introduction
This is a full functional .Net-wrapper to allow easiest access to the WNet API.
The project have the following function-wrappers:
void AddConnection(string remoteName, string password, string localName);
void AddConnection(NetResource netResource, string password,
string userName, ConnectionFlags options);
void AddConnection(Control ownerWindow,
NetResource netResource, string password,
string userName, ConnectionFlags options);
void CancelConnection(string name, bool isForce);
void CancelConnection(string name, ConnectionFlags options, bool isForce);
DialogResult ConnectionDialog(Control ownerWindow, ResourceType type);
DialogResult ConnectionDialog(ConnectDialogInfo info);
DialogResult DisconnectWithDialog(Control ownerWindow, ResourceType type);
NetResource[] EnumResources(ResourceScope scope,
ResourceType type, ResourceUsage usage, NetResource target);
string GetConnectionRemoteName(string localName);
string GetConnection(string localName);
void GetLastError(out int errorCode,
out string errorText, out string providerName);
NetInfo GetNetworkInformation(string provider);
string GetProviderName(NetworkType netType);
string GetUser(string name);
ConnectInfo GetConnectionPerformance(NetResource netResource);
NetResource GetResourceInformation(NetResource netResource, out string path);
NetResource GetResourceInformation(NetResource netResource);
NetResource GetResourceParent(NetResource netResource);
string GetUniversalName(string localPath);
RemoteNameInfo GetRemoteUniversalName(string localPath);
string UseConnection(Control ownerWindow,
NetResource netResource, string password,
string userId, ConnectionFlags flags);
The following functions still have not been wrapped:
WNetConnectionDialog1
WNetDisconnectDialog1
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.