AreAllAccessesGranted function (securitybaseapi.h)
The AreAllAccessesGranted function checks whether a set of requested access rights has been granted. The access rights are represented as bit flags in an access mask.
Syntax
BOOL AreAllAccessesGranted(
[in] DWORD GrantedAccess,
[in] DWORD DesiredAccess
);
Parameters
[in] GrantedAccess
An access mask that specifies the access rights that have been granted.
[in] DesiredAccess
An access mask that specifies the access rights that have been requested. This mask must have been mapped from generic to specific and standard access rights, usually by calling the MapGenericMask function.
Return value
If all requested access rights have been granted, the return value is nonzero.
If not all requested access rights have been granted, the return value is zero.
Remarks
The AreAllAccessesGranted function is commonly used by a server application to check the access rights of a client attempting to gain access to an object. When the bits set in the DesiredAccess parameter match the bits set in the GrantedAccess parameter, all requested rights have been granted.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | securitybaseapi.h (include Windows.h) |
Library | Advapi32.lib |
DLL | Advapi32.dll |
See also
Client/Server Access Control Functions