ReactOS 0.4.16-dev-197-g92996da
access.c File Reference
#include <rtl.h>
#include <debug.h>
Include dependency graph for access.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

BOOLEAN NTAPI RtlAreAllAccessesGranted (IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess)
 
BOOLEAN NTAPI RtlAreAnyAccessesGranted (IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess)
 
VOID NTAPI RtlMapGenericMask (IN OUT PACCESS_MASK AccessMask, IN PGENERIC_MAPPING GenericMapping)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file access.c.

Function Documentation

◆ RtlAreAllAccessesGranted()

BOOLEAN NTAPI RtlAreAllAccessesGranted ( IN ACCESS_MASK  GrantedAccess,
IN ACCESS_MASK  DesiredAccess 
)

Definition at line 22 of file access.c.

24{
26
27 /* Return if there's no leftover bits after granting all of them */
28 return !(~GrantedAccess & DesiredAccess);
29}
#define PAGED_CODE_RTL()
Definition: rtlp.h:16
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2658

◆ RtlAreAnyAccessesGranted()

BOOLEAN NTAPI RtlAreAnyAccessesGranted ( IN ACCESS_MASK  GrantedAccess,
IN ACCESS_MASK  DesiredAccess 
)

Definition at line 36 of file access.c.

38{
40
41 /* Return if there's any leftover bits after granting all of them */
42 return ((GrantedAccess & DesiredAccess) != 0);
43}
_In_ PSECURITY_SUBJECT_CONTEXT _In_ BOOLEAN _In_ ACCESS_MASK _In_ ACCESS_MASK _Outptr_opt_ PPRIVILEGE_SET _In_ PGENERIC_MAPPING _In_ KPROCESSOR_MODE _Out_ PACCESS_MASK GrantedAccess
Definition: sefuncs.h:20

◆ RtlMapGenericMask()

VOID NTAPI RtlMapGenericMask ( IN OUT PACCESS_MASK  AccessMask,
IN PGENERIC_MAPPING  GenericMapping 
)

Definition at line 50 of file access.c.

52{
54
55 /* Convert mappings */
60
61 /* Clear generic flags */
63}
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
#define GENERIC_READ
Definition: compat.h:135
_In_ ACCESS_MASK AccessMask
Definition: exfuncs.h:186
#define GENERIC_ALL
Definition: nt_native.h:92
#define GENERIC_WRITE
Definition: nt_native.h:90
#define GENERIC_EXECUTE
Definition: nt_native.h:91
ACCESS_MASK GenericExecute
Definition: nt_native.h:567
ACCESS_MASK GenericRead
Definition: nt_native.h:565
ACCESS_MASK GenericAll
Definition: nt_native.h:568
ACCESS_MASK GenericWrite
Definition: nt_native.h:566