2000-10-08 18:55:29 +02:00
|
|
|
#ifndef _NTDEF_H
|
|
|
|
#define _NTDEF_H
|
2000-10-02 11:09:38 +02:00
|
|
|
#define NTAPI __stdcall
|
2000-10-01 02:55:42 +02:00
|
|
|
#define OBJ_INHERIT 2L
|
|
|
|
#define OBJ_PERMANENT 16L
|
|
|
|
#define OBJ_EXCLUSIVE 32L
|
|
|
|
#define OBJ_CASE_INSENSITIVE 64L
|
|
|
|
#define OBJ_OPENIF 128L
|
|
|
|
#define OBJ_OPENLINK 256L
|
|
|
|
#define OBJ_VALID_ATTRIBUTES 498L
|
|
|
|
#define InitializeObjectAttributes(p,n,a,r,s) { \
|
2000-10-09 11:51:46 +02:00
|
|
|
(p)->Length = sizeof(OBJECT_ATTRIBUTES); \
|
|
|
|
(p)->RootDirectory = (r); \
|
|
|
|
(p)->Attributes = (a); \
|
|
|
|
(p)->ObjectName = (n); \
|
|
|
|
(p)->SecurityDescriptor = (s); \
|
2000-10-01 02:55:42 +02:00
|
|
|
(p)->SecurityQualityOfService = NULL; \
|
|
|
|
}
|
2000-10-09 11:51:46 +02:00
|
|
|
#ifndef NT_SUCCESS
|
2000-10-01 02:55:42 +02:00
|
|
|
#define NT_SUCCESS(x) ((x)>=0)
|
2000-10-09 11:51:46 +02:00
|
|
|
#define STATUS_SUCCESS ((NTSTATUS)0)
|
|
|
|
#endif
|
2000-10-08 18:55:29 +02:00
|
|
|
#if !defined(_NTSECAPI_H) && !defined(_SUBAUTH_H)
|
2000-10-01 02:55:42 +02:00
|
|
|
typedef LONG NTSTATUS, *PNTSTATUS;
|
|
|
|
typedef struct _UNICODE_STRING {
|
|
|
|
USHORT Length;
|
|
|
|
USHORT MaximumLength;
|
|
|
|
PWSTR Buffer;
|
|
|
|
} UNICODE_STRING, *PUNICODE_STRING;
|
2000-10-09 11:51:46 +02:00
|
|
|
typedef struct _STRING {
|
2000-10-08 18:55:29 +02:00
|
|
|
USHORT Length;
|
|
|
|
USHORT MaximumLength;
|
|
|
|
PCHAR Buffer;
|
|
|
|
} STRING, *PSTRING;
|
|
|
|
#endif
|
|
|
|
typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;
|
2000-10-01 02:55:42 +02:00
|
|
|
typedef enum _SECTION_INHERIT {
|
|
|
|
ViewShare = 1,
|
|
|
|
ViewUnmap = 2
|
|
|
|
} SECTION_INHERIT;
|
2001-05-17 17:16:37 +02:00
|
|
|
#if !defined(_NTSECAPI_H)
|
2000-10-01 02:55:42 +02:00
|
|
|
typedef struct _OBJECT_ATTRIBUTES {
|
|
|
|
ULONG Length;
|
|
|
|
HANDLE RootDirectory;
|
|
|
|
PUNICODE_STRING ObjectName;
|
|
|
|
ULONG Attributes;
|
|
|
|
PVOID SecurityDescriptor;
|
|
|
|
PVOID SecurityQualityOfService;
|
|
|
|
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
|
2001-05-17 17:16:37 +02:00
|
|
|
#endif
|
2000-10-08 18:55:29 +02:00
|
|
|
#endif /* _NTDEF_H */
|