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 (
LPWSTR UncServerName,
DWORD Level,
LPBYTE Buf,
LPDWORD ParmError
);
Windows NT: Requires version 3.1 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in lmuse.h.
Import Library: Use netapi32.lib.
Networking (Net) Overview, Net Functions, WNetAddConnection2