Platform SDK: Network Management

Access Functions

Windows NT/2000: The access functions are obsolete on Windows NT/Windows 2000. These functions work only when the function is accessed with a LAN Manager 2.x system. The Win32 API provides a full set of access control functions. Use these in place of the network management access functions.

Windows 95/98: The access functions examine or modify user or group access permissions for particular network resources. An access-control list (ACL) contains the name of a resource, an audit attribute field, and a list of access-control entries. An access-control entry (ACE) is a user name or a group name, and the corresponding access permissions.

The access functions that are supported on Windows 95 and Windows 98 are listed following.

Function Description
NetAccessAdd Creates a new ACL for a resource and sets the user or group access permissions.
NetAccessCheck Verifies whether a user has permission to perform a specified operation on a particular resource.
NetAccessDel Deletes the ACL for a resource.
NetAccessEnum Retrieves information about all ACLs.
NetAccessGetInfo Returns the ACL for a particular resource.
NetAccessGetUserPerms Returns a user's or group's access permissions for a particular resource.
NetAccessSetInfo Changes the ACL for a resource and grants access permissions.
NetSecurityGetInfo Returns access control information in a security_info_1 structure.

Only users or applications with admin group membership or special permission for the resource can define or examine access permissions. Users have special permissions for a resource when they are granted ACCESS_PERM permission for that resource; this is also known as P permission.

Access permission information is available at the following levels:

access_info_0
access_info_1
access_info_2
access_info_12

Access list information is available at the following level:

access_list