AreAllAccessesGranted

  BOOL AreAllAccessesGranted(GrantedAccess, DesiredAccess)    
  DWORD GrantedAccess;    
  DWORD DesiredAccess;    

The AreAllAccessesGranted function checks a desired access mask against a granted access mask. It is used by the Object Management component when dereferencing a handle.

Parameters

GrantedAccess

Specifies the granted access mask.

DesiredAccess

Specifies the desired access mask.

Return Value

If the GrantedAccess mask has all the bits set that the DesiredAccess mask has set, the function return value is TRUE. That is, the function returns TRUE if all of the desired accesses have been granted.

Otherwise, the function return value is FALSE.

See Also

AreAnyAccessesGranted, MapGenericMask