Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
NETINFOSTRUCT structure (winnetwk.h)
The NETINFOSTRUCT structure contains information describing the network provider returned by the WNetGetNetworkInformation function.
Syntax
typedef struct _NETINFOSTRUCT {
DWORD cbStructure;
DWORD dwProviderVersion;
DWORD dwStatus;
DWORD dwCharacteristics;
ULONG_PTR dwHandle;
WORD wNetType;
DWORD dwPrinters;
DWORD dwDrives;
} NETINFOSTRUCT, *LPNETINFOSTRUCT;
Members
cbStructure
Type: DWORD
The size, in bytes, of the NETINFOSTRUCT structure. The caller must supply this value to indicate the size of the structure passed in. Upon return, it has the size of the structure filled in.
dwProviderVersion
Type: DWORD
The version number of the network provider software.
dwStatus
Type: DWORD
The current status of the network provider software. This member can be one of the following values.
| Value | Meaning |
|---|---|
|
The network is running. |
|
The network is unavailable. |
|
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.) |
dwCharacteristics
Type: DWORD
Characteristics of the network provider software.
This value is zero.
Windows Me/98/95: This member can be one or more of the following values.
| Value | Meaning |
|---|---|
|
The network provider is running as a 16-bit Windows network driver. |
|
The network provider requires a redirected local disk drive device to access server file systems. |
|
The network provider requires a redirected local printer port to access server file systems. |
dwHandle
Type: ULONG_PTR
An instance handle for the network provider or for the 16-bit Windows network driver.
wNetType
Type: WORD
The network type unique to the running network. This value associates resources with a specific network when the resources are persistent or stored in links. You can find a complete list of network types in the header file Winnetwk.h.
dwPrinters
Type: DWORD
A set of bit flags indicating the valid print numbers for redirecting local printer devices, with the low-order bit corresponding to LPT1.
Windows Me/98/95: This value is always set to –1.
dwDrives
Type: DWORD
A set of bit flags indicating the valid local disk devices for redirecting disk drives, with the low-order bit corresponding to A:.
Windows Me/98/95: This value is always set to –1.
Remarks
The NETINFOSTRUCT structure contains information describing the network, such as the version of the network provider software and the network's current status.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps only] |
| Minimum supported server | Windows 2000 Server [desktop apps only] |
| Header | winnetwk.h |
See also
Feedback
Was this page helpful?
