This function is used to get Universal information about a network name which is referred to using a local device name. The following levels of information can be obtained about a network name.
DWORD WNetGetUniversalName (
LPTSTR lpLocalPath,
DWORD dwInfoLevel,
LPVOID lpBuffer,
LPDWORD lpBufferSize
);
WN_BAD_LOCALNAME | lpLocalName is invalid |
WN_NOT_CONNECTED | lpLocalName not a redirected device |
WN_MORE_DATA | the buffer is too small |
WN_CONNECTION_CLOSED | the device is not currently connected, but it is a remembered (persistent) connection. |
WN_FUNCTION_BUSY | The router or provider is busy (possibly initializing). The caller should retry. |
WN_NO_NETWORK | network is not present. |
WN_NOT_SUPPORTED | This function is not supported by any of the providers. |
WN_EXTENDED_ERROR | a network specific error occured. WNetGetLastError should be called to obtain a description of the error. |