Function : Access Control List

ACLLookupAccess - Returns ACL information for the specified names.
----------------------------------------------------------------------------------------------------------

#include <acl.h>

STATUS LNPUBLIC ACLLookupAccess(
DHANDLE hACL,
NAMES_LIST far *pNamesList,
WORD far *retAccessLevel,
ACL_PRIVILEGES far *retPrivileges,
WORD far *retAccessFlags,
DHANDLE far *rethPrivNames
);

Description :

This function looks up all the specified names in the access control list and returns the maximum of the authorized level and privileges. If none of the specified names are found in the list, the level and privileges for the default entry are returned. If no names are supplied, then the level and privileges for the minimal entry are returned.

If the ACL contains multiple occurrences of a name, this function applies the same rules as the Notes User Interface when determining which access level takes precedence. For example, if a user's name is included in the ACL, and that name is also a member of a group included in the ACL, then the explicit name will always take precedence--even if it has a lower access level than the group name.


Parameters :

See Also :

ACL_LEVEL_xxx
----------------------------------------------------------------------------------------------------------