3 #define NTAPI __stdcall
5 #define OBJ_PERMANENT 16L
6 #define OBJ_EXCLUSIVE 32L
7 #define OBJ_CASE_INSENSITIVE 64L
8 #define OBJ_OPENIF 128L
9 #define OBJ_OPENLINK 256L
10 #define OBJ_VALID_ATTRIBUTES 498L
11 #define InitializeObjectAttributes(p,n,a,r,s) { \
12 (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
13 (p)->RootDirectory = (r); \
14 (p)->Attributes = (a); \
15 (p)->ObjectName = (n); \
16 (p)->SecurityDescriptor = (s); \
17 (p)->SecurityQualityOfService = NULL; \
20 #define NT_SUCCESS(x) ((x)>=0)
21 #define STATUS_SUCCESS ((NTSTATUS)0)
23 #if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H)
24 typedef LONG NTSTATUS
, *PNTSTATUS
;
25 typedef struct _UNICODE_STRING
{
29 } UNICODE_STRING
, *PUNICODE_STRING
;
30 typedef struct _STRING
{
36 typedef LARGE_INTEGER PHYSICAL_ADDRESS
, *PPHYSICAL_ADDRESS
;
37 typedef enum _SECTION_INHERIT
{
41 #if !defined(_NTSECAPI_H)
42 typedef struct _OBJECT_ATTRIBUTES
{
45 PUNICODE_STRING ObjectName
;
47 PVOID SecurityDescriptor
;
48 PVOID SecurityQualityOfService
;
49 } OBJECT_ATTRIBUTES
, *POBJECT_ATTRIBUTES
;