This function returns the name used to access a directory or file on a redirected local device from the network. Its primary use is to return the information for directories that are part of a distributed file store (DFS), which are redirected from a directory below the root of the associated local device. Providers that do not support this type of feature do not have to support this function, as MPR provides default behavior for this case.
DWORD NPGetUniversalName(
LPTSTR lpLocalPath,
DWORD dwInfoLevel,
LPVOID lpBuffer,
LPDWORD lpBufferSize
);
WN_BAD_LOCALNAME | lpLocalPath does not start with a valid redirected local disk device name. |
WN_BAD_LEVEL | dwInfoLevel is not set to a valid value. |
WN_NOT_CONNECTED | lpLocalPath is not a connected network resource. |
WN_MORE_DATA | lpBuffer is not a large enough buffer to return the result. lpBufferSize is returned with the required buffer size. |
WN_NO_NETWORK | The network is not present. |
The structures that can be returned have the following format: UNIVERSAL_NAME_INFO and REMOTE_NAME_INFO.