Skip to content

Latest commit

 

History

History
108 lines (84 loc) · 2.69 KB

nf-lmaccess-netaccessadd.md

File metadata and controls

108 lines (84 loc) · 2.69 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:lmaccess.NetAccessAdd
NetAccessAdd function (lmaccess.h)
Not supported. (NetAccessAdd)
1
NetAccessAdd
NetAccessAdd function [Network Management]
_win32_netaccessadd
lmaccess/NetAccessAdd
netmgmt.netaccessadd
netmgmt\netaccessadd.htm
NetMgmt
54b78f1d-53d1-4cb8-99ba-51c3d6e6de0c
12/05/2018
1, NetAccessAdd, NetAccessAdd function [Network Management], _win32_netaccessadd, lmaccess/NetAccessAdd, netmgmt.netaccessadd
lmaccess.h
Lm.h, Lmaccess.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
Netapi32.lib
Netapi32.dll
Windows
19H1
NetAccessAdd
lmaccess/NetAccessAdd
c++
APIRef
kbSyntax
DllExport
Netapi32.dll
NetAccessAdd

NetAccessAdd function

-description

[This function is obsolete. For a list of alternate functions, see Authorization Functions.]

Not supported.

The NetAccessAdd function creates a new access control list (ACL) for a resource.

-parameters

-param servername

Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.

-param level

Specifies the information level of the data. This parameter can be the following value.

Value Meaning
1
The pbBuffer parameter points to an access_info_1 structure.

-param buf

Pointer to the buffer that contains the access information structure.

-param parm_err

Specifies the size, in bytes, of the buffer pointed to by the pbBuffer parameter.

-returns

If the function succeeds, the return value is NERR_Success.

If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes.

-remarks

This function requires User level security to be enabled.

-see-also

Authorization Functions