Group: Windows Networking - Library: mpr
The WNetGetUniversalName function takes a drive-based path for a network resource and returns an information structure that contains a more universal form of the name.
Retrieving a universal form for the drive-based path for a network resource
DWORD WNetGetUniversalName(
LPCTSTR lpLocalPath, // path for network resource
DWORD dwInfoLevel, // level of information
LPVOID lpBuffer, // name buffer
LPDWORD lpBufferSize // size of buffer
);
DECLARE INTEGER WNetGetUniversalName IN mpr;
STRING lpLocalPath,;
INTEGER dwInfoLevel,;
STRING @ lpBuffer,;
INTEGER @ lpBufferSize
lpLocalPath [in] Pointer to a constant null-terminated string that is a drive-based path for a network resource.
dwInfoLevel [in] Specifies the type of structure that the function stores in the buffer pointed to by the lpBuffer parameter.
lpBuffer [out] Pointer to a buffer that receives the structure specified by the dwInfoLevel parameter.
lpBufferSize [in/out] Pointer to a variable that specifies the size, in bytes, of the buffer pointed to by the lpBuffer parameter.
If the function succeeds, the return value is NO_ERROR.