Platform SDK: Windows Networking |
The NETINFOSTRUCT structure is used in the WNetGetNetworkInformation function. The structure contains information describing the network, such as the version of the network provider software and the network's current status.
typedef struct _NETINFOSTRUCT{ DWORD cbStructure; DWORD dwProviderVersion; DWORD dwStatus; DWORD dwCharacteristics; ULONG_PTR dwHandle; WORD wNetType; DWORD dwPrinters; DWORD dwDrives; } NETINFOSTRUCT, *LPNETINFOSTRUCT;
Value | Meaning |
---|---|
NO_ERROR | The network is running. |
ERROR_NO_NETWORK | The network is unavailable. |
ERROR_BUSY | The network is not currently able to service requests, but it should become available shortly. (This value typically indicates that the network is starting up.) |
Windows NT/2000: This value is always set to zero.
Windows 95/98: This member can be one or more of the following values.
Value | Meaning |
---|---|
NETINFO_DLL16 | The network provider is running as a 16-bit Windows network driver. |
NETINFO_DISKRED | The network provider requires a redirected local disk drive device to access server file systems. |
NETINFO_PRINTERRED | The network provider requires a redirected local printer port to access server file systems. |
Windows 95/98: This value is always set to –1.
Windows 95/98: This value is always set to –1.
Windows NT/2000: Requires Windows NT 4.0 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Winnetwk.h.
Windows Networking (WNet) Overview, Windows Networking Structures, WNetGetNetworkInformation