ReactOS  0.4.15-dev-313-g8fde48b
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
_In_ PIO_STACK_LOCATION _Inout_ PFILE_OBJECT _Inout_ PVCB _Outptr_result_maybenull_ PDCB _In_ PDCB _In_ PDIRENT _In_ ULONG _In_ ULONG _In_ PUNICODE_STRING _In_ PACCESS_MASK DesiredAccess
Definition: create.c:4157
_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:13

◆ 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 }
#define PAGED_CODE_RTL()
Definition: rtlp.h:16
_In_ PIO_STACK_LOCATION _Inout_ PFILE_OBJECT _Inout_ PVCB _Outptr_result_maybenull_ PDCB _In_ PDCB _In_ PDIRENT _In_ ULONG _In_ ULONG _In_ PUNICODE_STRING _In_ PACCESS_MASK DesiredAccess
Definition: create.c:4157
_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:13

◆ 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 }
#define GENERIC_ALL
Definition: nt_native.h:92
ACCESS_MASK GenericRead
Definition: nt_native.h:565
#define PAGED_CODE_RTL()
Definition: rtlp.h:16
ACCESS_MASK GenericExecute
Definition: nt_native.h:567
#define GENERIC_WRITE
Definition: nt_native.h:90
ACCESS_MASK GenericWrite
Definition: nt_native.h:566
_In_ ACCESS_MASK AccessMask
Definition: exfuncs.h:186
#define GENERIC_READ
Definition: compat.h:124
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
ACCESS_MASK GenericAll
Definition: nt_native.h:568
#define GENERIC_EXECUTE
Definition: nt_native.h:91

Referenced by SeCreateAccessStateEx().