Mercurial > mplayer.hg
annotate loader/wine/ntdef.h @ 34425:c34052f0594d
Remove #ifdef MP_DEBUG.
Additionally, revise a message.
author | ib |
---|---|
date | Thu, 05 Jan 2012 14:40:36 +0000 |
parents | 26f673ba0675 |
children |
rev | line source |
---|---|
26045 | 1 #ifndef MPLAYER_NTDEF_H |
2 #define MPLAYER_NTDEF_H | |
1 | 3 |
4 #include "basetsd.h" | |
5 #include "windef.h" | |
6 | |
7 #include "pshpack1.h" | |
8 | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
9 #define NTAPI __stdcall |
1 | 10 |
11 #ifndef IN | |
12 #define IN | |
13 #endif | |
14 | |
15 #ifndef OUT | |
16 #define OUT | |
17 #endif | |
18 | |
19 #ifndef OPTIONAL | |
20 #define OPTIONAL | |
21 #endif | |
22 | |
23 #ifndef VOID | |
24 #define VOID void | |
25 #endif | |
26 | |
27 typedef LONG NTSTATUS; | |
28 typedef NTSTATUS *PNTSTATUS; | |
29 | |
30 typedef short CSHORT; | |
29263
0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
diego
parents:
26045
diff
changeset
|
31 typedef CSHORT *PCSHORT; |
1 | 32 |
33 typedef WCHAR * PWCHAR; | |
34 | |
35 /* NT lowlevel Strings (handled by Rtl* functions in NTDLL) | |
36 * If they are zero terminated, Length does not include the terminating 0. | |
37 */ | |
38 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
39 typedef struct STRING { |
1 | 40 USHORT Length; |
41 USHORT MaximumLength; | |
42 PSTR Buffer; | |
43 } STRING,*PSTRING,ANSI_STRING,*PANSI_STRING; | |
44 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
45 typedef struct CSTRING { |
1 | 46 USHORT Length; |
47 USHORT MaximumLength; | |
48 PCSTR Buffer; | |
49 } CSTRING,*PCSTRING; | |
50 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
51 typedef struct UNICODE_STRING { |
1 | 52 USHORT Length; /* bytes */ |
53 USHORT MaximumLength; /* bytes */ | |
54 PWSTR Buffer; | |
55 } UNICODE_STRING,*PUNICODE_STRING; | |
56 | |
57 /* | |
58 Objects | |
59 */ | |
60 | |
61 #define OBJ_INHERIT 0x00000002L | |
62 #define OBJ_PERMANENT 0x00000010L | |
63 #define OBJ_EXCLUSIVE 0x00000020L | |
64 #define OBJ_CASE_INSENSITIVE 0x00000040L | |
65 #define OBJ_OPENIF 0x00000080L | |
66 #define OBJ_OPENLINK 0x00000100L | |
67 #define OBJ_KERNEL_HANDLE 0x00000200L | |
68 #define OBJ_VALID_ATTRIBUTES 0x000003F2L | |
69 | |
25794
2c8cdb9123b8
Fix a ton of illegal identifiers. Identifiers starting with __ or _ and a
diego
parents:
24422
diff
changeset
|
70 typedef struct OBJECT_ATTRIBUTES |
1 | 71 { ULONG Length; |
72 HANDLE RootDirectory; | |
73 PUNICODE_STRING ObjectName; | |
74 ULONG Attributes; | |
75 PVOID SecurityDescriptor; /* type SECURITY_DESCRIPTOR */ | |
76 PVOID SecurityQualityOfService; /* type SECURITY_QUALITY_OF_SERVICE */ | |
77 } OBJECT_ATTRIBUTES; | |
78 | |
79 typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES; | |
80 | |
81 #define InitializeObjectAttributes(p,n,a,r,s) \ | |
82 { (p)->Length = sizeof(OBJECT_ATTRIBUTES); \ | |
83 (p)->RootDirectory = r; \ | |
84 (p)->Attributes = a; \ | |
85 (p)->ObjectName = n; \ | |
86 (p)->SecurityDescriptor = s; \ | |
87 (p)->SecurityQualityOfService = NULL; \ | |
88 } | |
89 | |
90 | |
91 #include "poppack.h" | |
92 | |
26045 | 93 #endif /* MPLAYER_NTDEF_H */ |