winnetwk.h header

This header is used by multiple technologies. For more information, see:

winnetwk.h contains the following programming interfaces:

Functions

 
MultinetGetConnectionPerformanceA

Returns information about the expected performance of a connection used to access a network resource. (ANSI)
MultinetGetConnectionPerformanceW

Returns information about the expected performance of a connection used to access a network resource. (Unicode)
WNetAddConnection2A

The WNetAddConnection2 function makes a connection to a network resource and can redirect a local device to the network resource. (ANSI)
WNetAddConnection2W

The WNetAddConnection2 function makes a connection to a network resource and can redirect a local device to the network resource. (Unicode)
WNetAddConnection3A

The WNetAddConnection3 function makes a connection to a network resource. The function can redirect a local device to the network resource. (ANSI)
WNetAddConnection3W

The WNetAddConnection3 function makes a connection to a network resource. The function can redirect a local device to the network resource. (Unicode)
WNetAddConnectionA

The WNetAddConnection function enables the calling application to connect a local device to a network resource. A successful connection is persistent, meaning that the system automatically restores the connection during subsequent logon operations. (ANSI)
WNetAddConnectionW

The WNetAddConnection function enables the calling application to connect a local device to a network resource. A successful connection is persistent, meaning that the system automatically restores the connection during subsequent logon operations. (Unicode)
WNetCancelConnection2A

The WNetCancelConnection2 function cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected. (ANSI)
WNetCancelConnection2W

The WNetCancelConnection2 function cancels an existing network connection. You can also call the function to remove remembered network connections that are not currently connected. (Unicode)
WNetCancelConnectionA

The WNetCancelConnection function cancels an existing network connection. (ANSI)
WNetCancelConnectionW

The WNetCancelConnection function cancels an existing network connection. (Unicode)
WNetCloseEnum

The WNetCloseEnum function ends a network resource enumeration started by a call to the WNetOpenEnum function.
WNetConnectionDialog

The WNetConnectionDialog function starts a general browsing dialog box for connecting to network resources. The function requires a handle to the owner window for the dialog box.
WNetConnectionDialog1A

The WNetConnectionDialog1 function brings up a general browsing dialog for connecting to network resources. The function requires a CONNECTDLGSTRUCT to establish the dialog box parameters. (ANSI)
WNetConnectionDialog1W

The WNetConnectionDialog1 function brings up a general browsing dialog for connecting to network resources. The function requires a CONNECTDLGSTRUCT to establish the dialog box parameters. (Unicode)
WNetDisconnectDialog

The WNetDisconnectDialog function starts a general browsing dialog box for disconnecting from network resources. The function requires a handle to the owner window for the dialog box.
WNetDisconnectDialog1A

The WNetDisconnectDialog1 function attempts to disconnect a network resource. (ANSI)
WNetDisconnectDialog1W

The WNetDisconnectDialog1 function attempts to disconnect a network resource. (Unicode)
WNetEnumResourceA

The WNetEnumResource function continues an enumeration of network resources that was started by a call to the WNetOpenEnum function. (ANSI)
WNetEnumResourceW

The WNetEnumResource function continues an enumeration of network resources that was started by a call to the WNetOpenEnum function. (Unicode)
WNetGetConnectionA

The WNetGetConnection function retrieves the name of the network resource associated with a local device. (ANSI)
WNetGetConnectionW

The WNetGetConnection function retrieves the name of the network resource associated with a local device. (Unicode)
WNetGetLastErrorA

The WNetGetLastError function retrieves the most recent extended error code set by a WNet function. The network provider reported this error code; it will not generally be one of the errors included in the SDK header file WinError.h. (ANSI)
WNetGetLastErrorW

The WNetGetLastError function retrieves the most recent extended error code set by a WNet function. The network provider reported this error code; it will not generally be one of the errors included in the SDK header file WinError.h. (Unicode)
WNetGetNetworkInformationA

The WNetGetNetworkInformation function returns extended information about a specific network provider whose name was returned by a previous network enumeration. (ANSI)
WNetGetNetworkInformationW

The WNetGetNetworkInformation function returns extended information about a specific network provider whose name was returned by a previous network enumeration. (Unicode)
WNetGetProviderNameA

The WNetGetProviderName function obtains the provider name for a specific type of network. (ANSI)
WNetGetProviderNameW

The WNetGetProviderName function obtains the provider name for a specific type of network. (Unicode)
WNetGetResourceInformationA

When provided with a remote path to a network resource, the WNetGetResourceInformation function identifies the network provider that owns the resource and obtains information about the type of the resource. (ANSI)
WNetGetResourceInformationW

When provided with a remote path to a network resource, the WNetGetResourceInformation function identifies the network provider that owns the resource and obtains information about the type of the resource. (Unicode)
WNetGetResourceParentA

The WNetGetResourceParent function returns the parent of a network resource in the network browse hierarchy. Browsing begins at the location of the specified network resource. (ANSI)
WNetGetResourceParentW

The WNetGetResourceParent function returns the parent of a network resource in the network browse hierarchy. Browsing begins at the location of the specified network resource. (Unicode)
WNetGetUniversalNameA

The WNetGetUniversalName function takes a drive-based path for a network resource and returns an information structure that contains a more universal form of the name. (ANSI)
WNetGetUniversalNameW

The WNetGetUniversalName function takes a drive-based path for a network resource and returns an information structure that contains a more universal form of the name. (Unicode)
WNetGetUserA

The WNetGetUser function retrieves the current default user name, or the user name used to establish a network connection. (ANSI)
WNetGetUserW

The WNetGetUser function retrieves the current default user name, or the user name used to establish a network connection. (Unicode)
WNetOpenEnumA

The WNetOpenEnum function starts an enumeration of network resources or existing connections. You can continue the enumeration by calling the WNetEnumResource function. (ANSI)
WNetOpenEnumW

The WNetOpenEnum function starts an enumeration of network resources or existing connections. You can continue the enumeration by calling the WNetEnumResource function. (Unicode)
WNetRestoreConnectionW

The WNetRestoreConnectionW function restores the connection to a network resource. The function prompts the user, if necessary, for a name and password.
WNetUseConnectionA

The WNetUseConnection function makes a connection to a network resource. The function can redirect a local device to a network resource. (ANSI)
WNetUseConnectionW

The WNetUseConnection function makes a connection to a network resource. The function can redirect a local device to a network resource. (Unicode)

Structures

 
CONNECTDLGSTRUCTA

Used by the WNetConnectionDialog1 function to establish browsing dialog box parameters. (ANSI)
CONNECTDLGSTRUCTW

Used by the WNetConnectionDialog1 function to establish browsing dialog box parameters. (Unicode)
DISCDLGSTRUCTA

Used in the WNetDisconnectDialog1 function. The structure contains required information for the disconnect attempt. (ANSI)
DISCDLGSTRUCTW

Used in the WNetDisconnectDialog1 function. The structure contains required information for the disconnect attempt. (Unicode)
NETCONNECTINFOSTRUCT

The NETCONNECTINFOSTRUCT structure contains information about the performance of a network. It is used by the NPGetConnectionPerformance function.
NETINFOSTRUCT

Contains information describing the network provider returned by the WNetGetNetworkInformation function.
NETRESOURCEA

The following structure contains information about a network resource. It is used by several of the network provider functions, including NPOpenEnum and NPAddConnection. (ANSI)
NETRESOURCEW

The following structure contains information about a network resource. It is used by several of the network provider functions, including NPOpenEnum and NPAddConnection. (Unicode)
REMOTE_NAME_INFOA

The REMOTE_NAME_INFO structure contains information about the remote form of a universal name. It is used by the NPGetUniversalName function. (ANSI)
REMOTE_NAME_INFOW

The REMOTE_NAME_INFO structure contains information about the remote form of a universal name. It is used by the NPGetUniversalName function. (Unicode)
UNIVERSAL_NAME_INFOA

The UNIVERSAL_NAME_INFO structure contains information about the UNC form of a universal name. It is used by the NPGetUniversalName function. (ANSI)
UNIVERSAL_NAME_INFOW

The UNIVERSAL_NAME_INFO structure contains information about the UNC form of a universal name. It is used by the NPGetUniversalName function. (Unicode)