BOOLEAN RtlAreAllAccessesGranted( IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess ); Routine Description: This routine is used to check a desired access mask against a granted access mask. It is used by the Object Management component when dereferencing a handle. Arguments: GrantedAccess - Specifies the granted access mask. DesiredAccess - Specifies the desired access mask. Return Value: BOOLEAN - TRUE if the GrantedAccess mask has all the bits set that the DesiredAccess mask has set. That is, TRUE is returned if all of the desired accesses have been granted.