WNet Functions

The following functions are used in Windows networking:

Connection Functions

WNetAddConnection
WNetAddConnection2
WNetAddConnection3
WNetCancelConnection
WNetCancelConnection2
WNetConnectionDialog
WNetConnectionDialog1
WNetDisconnectDialog
WNetDisconnectDialog1
WNetGetConnection
WNetGetUniversalName

Enumeration Functions

WNetCloseEnum
WNetEnumResource
WNetOpenEnum

Information Functions

WNetGetNetworkInformation
WNetGetLastError
WNetGetProviderName
WNetGetResourceInformation
WNetGetResourceParent

User Functions

WNetGetUser

Many of these functions use a NETRESOURCE structure.

The WNetAddConnection and WNetCancelConnection functions are supported for compatibility with Windows for Workgroups. However, new applications should use WNetAddConnection2 or WNetAddConnection3 and WNetCancelConnection2.