annotate loader/wine/ntdef.h @ 32269:1aaf8691e700

Add CFLAGS/LDFLAGS for all FFmpeg libraries when using pkg-config in configure.
author diego
date Sat, 25 Sep 2010 21:00:34 +0000
parents 26f673ba0675
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
1 #ifndef MPLAYER_NTDEF_H
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
2 #define MPLAYER_NTDEF_H
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 #include "basetsd.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5 #include "windef.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
6
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
7 #include "pshpack1.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 26045
diff changeset
9 #define NTAPI __stdcall
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
10
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
11 #ifndef IN
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
12 #define IN
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
13 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
14
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
15 #ifndef OUT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
16 #define OUT
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 #ifndef OPTIONAL
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20 #define OPTIONAL
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 #ifndef VOID
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
24 #define VOID void
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25 #endif
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
26
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 typedef LONG NTSTATUS;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28 typedef NTSTATUS *PNTSTATUS;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30 typedef short CSHORT;
29263
0f1b5b68af32 whitespace cosmetics: Remove all trailing whitespace.
diego
parents: 26045
diff changeset
31 typedef CSHORT *PCSHORT;
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33 typedef WCHAR * PWCHAR;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
35 /* NT lowlevel Strings (handled by Rtl* functions in NTDLL)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36 * If they are zero terminated, Length does not include the terminating 0.
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
40 USHORT Length;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41 USHORT MaximumLength;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
42 PSTR Buffer;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
43 } STRING,*PSTRING,ANSI_STRING,*PANSI_STRING;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
46 USHORT Length;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
47 USHORT MaximumLength;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
48 PCSTR Buffer;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
49 } CSTRING,*PCSTRING;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
52 USHORT Length; /* bytes */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
53 USHORT MaximumLength; /* bytes */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
54 PWSTR Buffer;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
55 } UNICODE_STRING,*PUNICODE_STRING;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
56
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
57 /*
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
58 Objects
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
59 */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
60
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
61 #define OBJ_INHERIT 0x00000002L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
62 #define OBJ_PERMANENT 0x00000010L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
63 #define OBJ_EXCLUSIVE 0x00000020L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
64 #define OBJ_CASE_INSENSITIVE 0x00000040L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
65 #define OBJ_OPENIF 0x00000080L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
66 #define OBJ_OPENLINK 0x00000100L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
67 #define OBJ_KERNEL_HANDLE 0x00000200L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
68 #define OBJ_VALID_ATTRIBUTES 0x000003F2L
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
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
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
71 { ULONG Length;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
72 HANDLE RootDirectory;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
73 PUNICODE_STRING ObjectName;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
74 ULONG Attributes;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
75 PVOID SecurityDescriptor; /* type SECURITY_DESCRIPTOR */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
76 PVOID SecurityQualityOfService; /* type SECURITY_QUALITY_OF_SERVICE */
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
77 } OBJECT_ATTRIBUTES;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
78
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
79 typedef OBJECT_ATTRIBUTES *POBJECT_ATTRIBUTES;
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
80
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
81 #define InitializeObjectAttributes(p,n,a,r,s) \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
82 { (p)->Length = sizeof(OBJECT_ATTRIBUTES); \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
83 (p)->RootDirectory = r; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
84 (p)->Attributes = a; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
85 (p)->ObjectName = n; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
86 (p)->SecurityDescriptor = s; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
87 (p)->SecurityQualityOfService = NULL; \
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
88 }
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
89
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
90
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
91 #include "poppack.h"
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
92
26045
a8ea87c71d18 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25794
diff changeset
93 #endif /* MPLAYER_NTDEF_H */