| 1 | /* $Id: ntdef.h,v 1.2 1999-06-08 15:49:37 phaller Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef __WINE_NTDEF_H
|
|---|
| 4 | #define __WINE_NTDEF_H
|
|---|
| 5 |
|
|---|
| 6 | /* fixme: include basestd.h instead */
|
|---|
| 7 | #include "windef.h"
|
|---|
| 8 |
|
|---|
| 9 | #ifdef __cplusplus
|
|---|
| 10 | extern "C" {
|
|---|
| 11 | #endif
|
|---|
| 12 |
|
|---|
| 13 | #define NTAPI __stdcall
|
|---|
| 14 |
|
|---|
| 15 | #ifndef IN
|
|---|
| 16 | #define IN
|
|---|
| 17 | #endif
|
|---|
| 18 |
|
|---|
| 19 | #ifndef OUT
|
|---|
| 20 | #define OUT
|
|---|
| 21 | #endif
|
|---|
| 22 |
|
|---|
| 23 | #ifndef OPTIONAL
|
|---|
| 24 | #define OPTIONAL
|
|---|
| 25 | #endif
|
|---|
| 26 |
|
|---|
| 27 | #ifndef VOID
|
|---|
| 28 | #define VOID void
|
|---|
| 29 | #endif
|
|---|
| 30 |
|
|---|
| 31 | typedef LONG NTSTATUS;
|
|---|
| 32 | typedef NTSTATUS *PNTSTATUS;
|
|---|
| 33 |
|
|---|
| 34 | typedef short CSHORT;
|
|---|
| 35 | typedef CSHORT *PCSHORT;
|
|---|
| 36 |
|
|---|
| 37 | typedef WCHAR * PWCHAR;
|
|---|
| 38 |
|
|---|
| 39 | /* NT lowlevel Strings (handled by Rtl* functions in NTDLL)
|
|---|
| 40 | * If they are zero terminated, Length does not include the terminating 0.
|
|---|
| 41 | */
|
|---|
| 42 |
|
|---|
| 43 | typedef struct _STRING {
|
|---|
| 44 | USHORT Length;
|
|---|
| 45 | USHORT MaximumLength;
|
|---|
| 46 | PSTR Buffer;
|
|---|
| 47 | } STRING,*PSTRING,ANSI_STRING,*PANSI_STRING, OEM_STRING, *POEM_STRING;
|
|---|
| 48 | /* @@@PH 1999/06/08 OEM-String support is experimental */
|
|---|
| 49 |
|
|---|
| 50 | typedef struct _CSTRING {
|
|---|
| 51 | USHORT Length;
|
|---|
| 52 | USHORT MaximumLength;
|
|---|
| 53 | PCSTR Buffer;
|
|---|
| 54 | } CSTRING,*PCSTRING;
|
|---|
| 55 |
|
|---|
| 56 | typedef struct _UNICODE_STRING {
|
|---|
| 57 | USHORT Length; /* bytes */
|
|---|
| 58 | USHORT MaximumLength; /* bytes */
|
|---|
| 59 | PWSTR Buffer;
|
|---|
| 60 | } UNICODE_STRING,*PUNICODE_STRING;
|
|---|
| 61 |
|
|---|
| 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
|
|---|