ReactOS 0.4.15-dev-5664-g3bf4ef6
se.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS kernel-mode tests
3 * LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
4 * PURPOSE: Kernel-Mode Test Suite Se helper declarations
5 * PROGRAMMER: Thomas Faber <thomas.faber@reactos.org>
6 */
7
8#ifndef _KMTEST_SE_H_
9#define _KMTEST_SE_H_
10
13 _Inout_ PACL Acl,
19 _In_ BOOLEAN Failure);
20
23 _Inout_ PACL Acl,
27 _In_ PSID Sid);
28
29#define NO_SIZE ((ULONG)-1)
30
31#define CheckSid(Sid, SidSize, ExpectedSid) CheckSid_(Sid, SidSize, ExpectedSid, __FILE__, __LINE__)
32#define CheckSid_(Sid, SidSize, ExpectedSid, file, line) CheckSid__(Sid, SidSize, ExpectedSid, file ":" KMT_STRINGIZE(line))
33VOID
36 _In_ ULONG SidSize,
37 _In_ PISID ExpectedSid,
38 _In_ PCSTR FileAndLine);
39
40VOID
42 _In_ PACL Acl,
43 _In_ ULONG AceCount,
44 _In_ PCSTR FileAndLine,
45 _In_ va_list Arguments);
46
47#define CheckAcl(Acl, AceCount, ...) CheckAcl_(Acl, AceCount, __FILE__, __LINE__, ##__VA_ARGS__)
48#define CheckAcl_(Acl, AceCount, file, line, ...) CheckAcl__(Acl, AceCount, file ":" KMT_STRINGIZE(line), ##__VA_ARGS__)
49VOID
51 _In_ PACL Acl,
52 _In_ ULONG AceCount,
53 _In_ PCSTR FileAndLine,
54 ...);
55
56#endif /* !defined _KMTEST_SE_H_ */
unsigned char BOOLEAN
char * va_list
Definition: acmsvcex.h:78
LONG NTSTATUS
Definition: precomp.h:26
@ Success
Definition: eventcreate.c:712
unsigned int ULONG
Definition: retypes.h:1
VOID VCheckAcl__(_In_ PACL Acl, _In_ ULONG AceCount, _In_ PCSTR FileAndLine, _In_ va_list Arguments)
Definition: SeHelpers.c:128
VOID CheckSid__(_In_ PSID Sid, _In_ ULONG SidSize, _In_ PISID ExpectedSid, _In_ PCSTR FileAndLine)
Definition: SeHelpers.c:89
VOID CheckAcl__(_In_ PACL Acl, _In_ ULONG AceCount, _In_ PCSTR FileAndLine,...)
Definition: SeHelpers.c:219
NTSTATUS RtlxAddAuditAccessAceEx(_Inout_ PACL Acl, _In_ ULONG Revision, _In_ ULONG Flags, _In_ ACCESS_MASK AccessMask, _In_ PSID Sid, _In_ BOOLEAN Success, _In_ BOOLEAN Failure)
Definition: SeHelpers.c:12
NTSTATUS RtlxAddMandatoryLabelAceEx(_Inout_ PACL Acl, _In_ ULONG Revision, _In_ ULONG Flags, _In_ ACCESS_MASK AccessMask, _In_ PSID Sid)
Definition: SeHelpers.c:53
#define _Inout_
Definition: ms_sal.h:378
#define _In_
Definition: ms_sal.h:308
_In_ ACCESS_MASK AccessMask
Definition: exfuncs.h:186
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1133
_In_ ULONG Revision
Definition: rtlfuncs.h:1130
ULONG ACCESS_MASK
Definition: nt_native.h:40
const char * PCSTR
Definition: typedefs.h:52
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170