This function returns information about the expected performance of a connection used to access a network resource. The request can be only for a network resource to which there is currently a connection.
The information returned can be an estimate only. Note that if the network cannot obtain information about the resource on the network, then it can return information about the network adapter and its associated performance, setting dwFlags accordingly.
DWORD NPGetConnectionPerformance(
LPTSTR lpRemoteName,
LPNETCONNECTINFOSTRUCT lpNetConnectInfo
);
WN_BAD_LOCALNAME | lpLocalName is invalid. |
WN_NOT_CONNECTED | lpRemoteName not a connected network resource. |
WN_NO_NETWORK | The network is not present. |