Platform SDK: Access Control |
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.
BOOL AreAllAccessesGranted( DWORD GrantedAccess, // granted access rights DWORD DesiredAccess // requested access rights );
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.
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.
Windows NT/2000: Requires Windows NT 3.1 or later.
Header: Declared in Winbase.h; include Windows.h.
Library: Use Advapi32.lib.
Client/Server Access Control Overview, Client/Server Access Control Functions, AccessCheck, AreAnyAccessesGranted, MapGenericMask