| 1 | #ifndef __WINE_NTDEF_H | 
|---|
| 2 | #define __WINE_NTDEF_H | 
|---|
| 3 |  | 
|---|
| 4 | /* fixme: include basestd.h instead */ | 
|---|
| 5 | #include "windef.h" | 
|---|
| 6 |  | 
|---|
| 7 | #ifdef __cplusplus | 
|---|
| 8 | extern "C" { | 
|---|
| 9 | #endif | 
|---|
| 10 |  | 
|---|
| 11 | #define NTAPI   __stdcall | 
|---|
| 12 |  | 
|---|
| 13 | #ifndef IN | 
|---|
| 14 | #define IN | 
|---|
| 15 | #endif | 
|---|
| 16 |  | 
|---|
| 17 | #ifndef OUT | 
|---|
| 18 | #define OUT | 
|---|
| 19 | #endif | 
|---|
| 20 |  | 
|---|
| 21 | #ifndef OPTIONAL | 
|---|
| 22 | #define OPTIONAL | 
|---|
| 23 | #endif | 
|---|
| 24 |  | 
|---|
| 25 | #ifndef VOID | 
|---|
| 26 | #define VOID void | 
|---|
| 27 | #endif | 
|---|
| 28 |  | 
|---|
| 29 | typedef LONG NTSTATUS; | 
|---|
| 30 | typedef NTSTATUS *PNTSTATUS; | 
|---|
| 31 |  | 
|---|
| 32 | typedef CONST char *PCSZ; | 
|---|
| 33 |  | 
|---|
| 34 | typedef short CSHORT; | 
|---|
| 35 | typedef CSHORT *PCSHORT; | 
|---|
| 36 |  | 
|---|
| 37 | /* NT lowlevel Strings (handled by Rtl* functions in NTDLL) | 
|---|
| 38 | * If they are zero terminated, Length does not include the terminating 0. | 
|---|
| 39 | */ | 
|---|
| 40 |  | 
|---|
| 41 | typedef struct _STRING { | 
|---|
| 42 | USHORT  Length; | 
|---|
| 43 | USHORT  MaximumLength; | 
|---|
| 44 | PSTR    Buffer; | 
|---|
| 45 | } STRING,*PSTRING,ANSI_STRING,*PANSI_STRING, OEM_STRING, *POEM_STRING; | 
|---|
| 46 | /* @@@PH 1999/06/08 OEM-String support is experimental */ | 
|---|
| 47 |  | 
|---|
| 48 | typedef struct _CSTRING { | 
|---|
| 49 | USHORT  Length; | 
|---|
| 50 | USHORT  MaximumLength; | 
|---|
| 51 | PCSTR   Buffer; | 
|---|
| 52 | } CSTRING,*PCSTRING; | 
|---|
| 53 |  | 
|---|
| 54 | #ifndef __UNICODE_STRING_DEFINED__ | 
|---|
| 55 | #define __UNICODE_STRING_DEFINED__ | 
|---|
| 56 | typedef struct _UNICODE_STRING { | 
|---|
| 57 | USHORT  Length;         /* bytes */ | 
|---|
| 58 | USHORT  MaximumLength;  /* bytes */ | 
|---|
| 59 | PWSTR   Buffer; | 
|---|
| 60 | } UNICODE_STRING,*PUNICODE_STRING; | 
|---|
| 61 | #endif | 
|---|
| 62 | /* | 
|---|
| 63 | Objects | 
|---|
| 64 | */ | 
|---|
| 65 |  | 
|---|
| 66 | #define OBJ_INHERIT             0x00000002L | 
|---|
| 67 | #define OBJ_PERMANENT           0x00000010L | 
|---|
| 68 | #define OBJ_EXCLUSIVE           0x00000020L | 
|---|
| 69 | #define OBJ_CASE_INSENSITIVE    0x00000040L | 
|---|
| 70 | #define OBJ_OPENIF              0x00000080L | 
|---|
| 71 | #define OBJ_OPENLINK            0x00000100L | 
|---|
| 72 | #define OBJ_KERNEL_HANDLE       0x00000200L | 
|---|
| 73 | #define OBJ_VALID_ATTRIBUTES    0x000003F2L | 
|---|
| 74 |  | 
|---|
| 75 | typedef struct _OBJECT_ATTRIBUTES | 
|---|
| 76 | {   ULONG Length; | 
|---|
| 77 | HANDLE RootDirectory; | 
|---|
| 78 | PUNICODE_STRING ObjectName; | 
|---|
| 79 | ULONG Attributes; | 
|---|
| 80 | PVOID SecurityDescriptor;        /* type SECURITY_DESCRIPTOR */ | 
|---|
| 81 | PVOID SecurityQualityOfService;  /* type SECURITY_QUALITY_OF_SERVICE */ | 
|---|
| 82 | } OBJECT_ATTRIBUTES; | 
|---|
| 83 |  | 
|---|
| 84 | typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES; | 
|---|
| 85 |  | 
|---|
| 86 | #ifdef __cplusplus | 
|---|
| 87 | } | 
|---|
| 88 | #endif | 
|---|
| 89 |  | 
|---|
| 90 | #endif | 
|---|