Prev Next

NetUseAdd info  Overview  Group

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.

Security Requirements

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 

   );

Parameters

UncServerName
Must be NULL.
Level
Level of information to set. 1 and 2 are valid.
Buf
A pointer to a buffer containing the use information structure.
ParmError
Optional pointer to a DWORD to return the index of the first parameter in error when ERROR_INVALID_PARAMETER is returned. If NULL the parameter is not returned on error.

See Also

WNetAddConnection2