DWORD NPGetResourceParent(
LPNETRESOURCE lpNetResource,
LPVOID lpBuffer,
LPDWORD cbBuffer
);
WN_MORE_DATA if input buffer is too small.
WN_BAD_VALUE | Invalid dwScope or dwUsage or dwType, or bad combination of parameters is specified (e.g. lpRemoteName does not correspond to dwType). |
WN_NOT_AUTHENTICATED | The caller does not have the necessary permissions to obtain the name of the parent. |
WN_ACCESS_DENIED | The user is authenticated to the network, but does not have sufficient permissions (access rights). |