* include/ntdef.h: New file.

This commit is contained in:
Corinna Vinschen 2000-10-01 00:55:42 +00:00
parent a6b9fcde41
commit a5e8da40eb
2 changed files with 48 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Oct 1 2:54:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/ntdef.h: New file.
Fri Aug 18 17:17:00 2000 Corinna Vinschen <corinna@vinschen.de>
* include/winnt.h:Add enums for TokenRestrictedSids and TokenSessionId

View File

@ -0,0 +1,44 @@
#ifndef _NTDEF_H_
#define _NTDEF_H_
#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) { \
(p)->Length = sizeof( OBJECT_ATTRIBUTES ); \
(p)->RootDirectory = r; \
(p)->Attributes = a; \
(p)->ObjectName = n; \
(p)->SecurityDescriptor = s; \
(p)->SecurityQualityOfService = NULL; \
}
#define STATUS_SUCCESS ((NTSTATUS)0)
#define NT_SUCCESS(x) ((x)>=0)
typedef LONG NTSTATUS, *PNTSTATUS;
typedef LARGE_INTEGER PHYSICAL_ADDRESS, *PPHYSICAL_ADDRESS;
typedef struct _UNICODE_STRING {
USHORT Length;
USHORT MaximumLength;
PWSTR Buffer;
} UNICODE_STRING, *PUNICODE_STRING;
typedef enum _SECTION_INHERIT {
ViewShare = 1,
ViewUnmap = 2
} SECTION_INHERIT;
typedef struct _OBJECT_ATTRIBUTES {
ULONG Length;
HANDLE RootDirectory;
PUNICODE_STRING ObjectName;
ULONG Attributes;
PVOID SecurityDescriptor;
PVOID SecurityQualityOfService;
} OBJECT_ATTRIBUTES, *POBJECT_ATTRIBUTES;
#endif /* _NTDEF_H_ */