#ifndef _NTRTL_H
//
// Access masks
//
#ifndef PHNT_NO_INLINE_ACCESSES_GRANTED
/**
* Checks if any of the desired accesses are granted.
*
* This function determines if any of the access rights specified in the DesiredAccess
* mask are present in the GrantedAccess mask.
*
* @param GrantedAccess The access mask that specifies the granted access rights.
* @param DesiredAccess The access mask that specifies the desired access rights.
* @return Returns TRUE if any of the desired access rights are granted, otherwise FALSE.
*/
FORCEINLINE
BOOLEAN
NTAPI
RtlAreAnyAccessesGranted(
_In_ ACCESS_MASK GrantedAccess,
_In_ ACCESS_MASK DesiredAccess
)
{
return (GrantedAccess & DesiredAccess) != 0;
}
View code on GitHub
#ifndef _NTRTL_H
//
// Access masks
//
#ifndef PHNT_NO_INLINE_ACCESSES_GRANTED
// ...
#else
/**
* Checks if any of the desired accesses are granted.
*
* This function determines if any of the access rights specified in the DesiredAccess
* mask are present in the GrantedAccess mask.
*
* @param GrantedAccess The access mask that specifies the granted access rights.
* @param DesiredAccess The access mask that specifies the desired access rights.
* @return Returns TRUE if any of the desired access rights are granted, otherwise FALSE.
*/
NTSYSAPI
BOOLEAN
NTAPI
RtlAreAnyAccessesGranted(
_In_ ACCESS_MASK GrantedAccess,
_In_ ACCESS_MASK DesiredAccess
);
View code on GitHub
No description available.