AreAnyAccessesGranted

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

The AreAnyAccessesGranted function tests whether any of a set of desired accesses are granted by a granted access mask. It is used by components other than the Object Management component for checking access mask subsets.

Parameters

GrantedAccess

Specifies the granted access mask.

DesiredAccess

Specifies the desired access mask.

Return Value

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

Otherwise the function return value is FALSE.

See Also

AreAllAccessesGranted, MapGenericMask