NETCONNECTINFOSTRUCT structure (winnetwk.h)
The NETCONNECTINFOSTRUCT structure contains information about the performance of a network. It is used by the NPGetConnectionPerformance function.
Syntax
typedef struct _NETCONNECTINFOSTRUCT {
DWORD cbStructure;
DWORD dwFlags;
DWORD dwSpeed;
DWORD dwDelay;
DWORD dwOptDataSize;
} NETCONNECTINFOSTRUCT, *LPNETCONNECTINFOSTRUCT;
Members
cbStructure
The size of the NETCONNECTINFOSTRUCT structure, in bytes. This is filled in by the caller to indicate the size of the structure passed in. The network provider should leave this field unchanged and can assume that the structure is large enough to contain all fields up to and including dwOptDataSize.
dwFlags
This is a bitmask which may have one or more of the following flags.
dwSpeed
The speed of the media to the network resource in units of 100bps. For example, a 1,200 baud point-to-point link returns 12.
dwDelay
The delay introduced by the network when sending information, in milliseconds. In other words, the time between when the network starts to send data and the time it is received. This is in addition to any latency that was incorporated into the calculation of dwSpeed, so the value returned will be zero for accessing most resources.
dwOptDataSize
A recommendation for the size of data, in bytes, that is most efficiently sent through the network when an application makes a single request to the network resource. For example, for a disk network resource, this value might be 2048 or 512 when writing a block of data.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | winnetwk.h |