NetUseAdd establishes a connection between a local or NULL device name and a shared resource by redirecting the local or NULL (UNC) device name to the shared resource. The NetUseAdd function is obsolete. It is provided only for compatibility with LAN Manager and 16-bit versions of Windows. Win32-based applications should use the WNetAddConnection2 function.
No special group membership is required for this call. This function cannot be executed on a remote server.
NET_API_STATUS NetUseAdd (
LPTSTR UncServerName, | |
DWORD Level, | |
LPBYTE Buf, | |
LPDWORD ParmError | |
); |