Implemented occlusion queries using either GL_ARB_occlusion_query or
[wine] / include / wine / rpcfc.h
1 /*
2  * RPC format chars, as found by studying MIDL output.
3  * Some, but not all, usage of these are explained on MSDN.
4  */
5
6 #ifndef __WINE_RPCFC_H
7 #define __WINE_RPCFC_H
8
9 /* base types */
10 #define RPC_FC_BYTE                     0x01
11 #define RPC_FC_CHAR                     0x02
12 #define RPC_FC_SMALL                    0x03
13 #define RPC_FC_USMALL                   0x04
14 #define RPC_FC_WCHAR                    0x05
15 #define RPC_FC_SHORT                    0x06
16 #define RPC_FC_USHORT                   0x07
17 #define RPC_FC_LONG                     0x08
18 #define RPC_FC_ULONG                    0x09
19 #define RPC_FC_FLOAT                    0x0a
20 #define RPC_FC_HYPER                    0x0b
21 #define RPC_FC_DOUBLE                   0x0c
22 #define RPC_FC_ENUM16                   0x0d
23 #define RPC_FC_ENUM32                   0x0e
24 #define RPC_FC_IGNORE                   0x0f
25 #define RPC_FC_ERROR_STATUS_T           0x10
26
27 /* other stuff */
28 #define RPC_FC_RP                       0x11 /* reference pointer */
29 #define RPC_FC_UP                       0x12 /* unique pointer */
30 #define RPC_FC_OP                       0x13 /* unique pointer in object ? */
31 #define RPC_FC_FP                       0x14 /* full pointer */
32 /* FC_RP/UP/OP/FP: flags, NdrFcShort(typeofs)/basetype */
33 #define RPC_FC_P_ALLOCALLNODES          0x01
34 #define RPC_FC_P_DONTFREE               0x02
35 #define RPC_FC_P_ONSTACK                0x04 /* [alloced_on_stack] */
36 #define RPC_FC_P_SIMPLEPOINTER          0x08 /* [simple_pointer] */
37 #define RPC_FC_P_DEREF                  0x10
38
39 #define RPC_FC_STRUCT                   0x15 /* simple structure */
40 /* FC_STRUCT: align-1, NdrFcShort(size), fields */
41
42 #define RPC_FC_PSTRUCT                  0x16 /* simple structure w/ pointers */
43 /* FC_PTRUCT: align-1, NdrFcShort(size), ptrs, fields */
44
45 #define RPC_FC_CSTRUCT                  0x17 /* conformant structure */
46
47 #define RPC_FC_CPSTRUCT                 0x18 /* conformant structure w/ pointers */
48
49 #define RPC_FC_CVSTRUCT                 0x19 /* conformant varying struct */
50
51 #define RPC_FC_BOGUS_STRUCT             0x1a /* complex structure */
52
53 #define RPC_FC_CARRAY                   0x1b /* conformant array */
54 /* FC_CARRAY: align-1, NdrFcShort(size), conformance, ptrs, fields */
55 #define RPC_FC_CVARRAY                  0x1c /* conformant varying array */
56 /* FC_CARRAY: align-1, NdrFcShort(size), conformance, variance, ptrs, fields */
57 #define RPC_FC_SMFARRAY                 0x1d /* small (<64K) fixed array */
58 /* FC_SMFARRAY: align-1, NdrFcShort(size), ptrs, fields */
59
60 #define RPC_FC_LGFARRAY                 0x1e /* large (>= 64k) fixed array */
61
62 #define RPC_FC_SMVARRAY                 0x1f /* small (<64k) varying array */
63
64 #define RPC_FC_LGVARRAY                 0x20 /* large (>= 64k) varying array */
65
66 #define RPC_FC_BOGUS_ARRAY              0x21 /* complex array */
67
68 #define RPC_FC_C_CSTRING                0x22
69 #define RPC_FC_C_WSTRING                0x25
70 #define RPC_FC_CSTRING                  0x26
71
72 #define RPC_FC_ENCAPSULATED_UNION       0x2a
73 #define RPC_FC_NON_ENCAPSULATED_UNION   0x2b
74
75 #define RPC_FC_BYTE_COUNT_POINTER       0x2c /* [byte_count] ACF attribute */
76
77 #define RPC_FC_TRANSMIT_AS              0x2d
78 #define RPC_FC_REPRESENT_AS             0x2e
79
80 #define RPC_FC_IP                       0x2f /* interface pointer */
81 /* FC_IP: FC_CONSTANT_IID iid */
82 /* FC_IP: FC_PAD correlation */
83
84 #define RPC_FC_BIND_EXPLICIT            0x00
85 #define RPC_FC_BIND_CONTEXT             0x30
86
87 #define RPC_FC_BIND_GENERIC             0x31
88 #define RPC_FC_BIND_PRIMITIVE           0x32
89 #define RPC_FC_AUTO_HANDLE              0x33
90 #define RPC_FC_CALLBACK_HANDLE          0x34
91 /* proc header: oiflags, NdrFcLong(rpcflags), NdrFcShort(procnum), NdrFcShort(stacksiz),
92  *  oi2 header: NdrFcShort(clientbuf), NdrFcShort(servbuf), oi2flags, parmcount
93  * oi2 parameters: NdrFcShort(flags), NdrFcShort(stackofs), NdrFcShort(typeofs)/basetype */
94 #define RPC_FC_PROC_OIF_FULLPTR         0x01
95 #define RPC_FC_PROC_OIF_RPCSSALLOC      0x02
96 #define RPC_FC_PROC_OIF_OBJECT          0x04
97 #define RPC_FC_PROC_OIF_RPCFLAGS        0x08
98 #define RPC_FC_PROC_OIF_OBJ_V2          0x20
99 #define RPC_FC_PROC_OIF_NEWINIT         0x40
100
101 #define RPC_FC_PROC_OI2F_SRVMUSTSIZE    0x01
102 #define RPC_FC_PROC_OI2F_CLTMUSTSIZE    0x02
103 #define RPC_FC_PROC_OI2F_HASRETURN      0x04
104 #define RPC_FC_PROC_OI2F_HASPIPES       0x08
105 #define RPC_FC_PROC_OI2F_HASASYNCUUID   0x20
106 #define RPC_FC_PROC_OI2F_HASEXTS        0x40
107 #define RPC_FC_PROC_OI2F_HASASYNCHND    0x80
108 #define RPC_FC_PROC_PF_MUSTSIZE         0x0001
109 #define RPC_FC_PROC_PF_MUSTFREE         0x0002
110 #define RPC_FC_PROC_PF_PIPE             0x0004
111 #define RPC_FC_PROC_PF_IN               0x0008
112 #define RPC_FC_PROC_PF_OUT              0x0010
113 #define RPC_FC_PROC_PF_RETURN           0x0020
114 #define RPC_FC_PROC_PF_BASETYPE         0x0040
115 #define RPC_FC_PROC_PF_BYVAL            0x0080
116 #define RPC_FC_PROC_PF_SIMPLEREF        0x0100
117 #define RPC_FC_PROC_PF_DONTFREEINST     0x0200
118 #define RPC_FC_PROC_PF_SAVEASYNC        0x0400
119 #define RPC_FC_PROC_PF_SRVALLOCSIZE     0xe000 /* in 8 byte units */
120 #define RPC_FC_PROC_EXT_NEWCORRDESC     0x01
121 #define RPC_FC_PROC_EXT_CLIENTCORRCHECK 0x02
122 #define RPC_FC_PROC_EXT_SERVERCORRCHECK 0x04
123 #define RPC_FC_PROC_EXT_HASNOTIFY       0x08
124 #define RPC_FC_PROC_EXT_HASNOTIFY2      0x10
125
126 #define RPC_FC_POINTER                  0x36
127
128 #define RPC_FC_ALIGNM4                  0x38
129 #define RPC_FC_ALIGNM8                  0x39
130
131 #define RPC_FC_STRUCTPAD2               0x3e
132
133 #define RPC_FC_NO_REPEAT                0x46
134 #define RPC_FC_FIXED_REPEAT             0x47
135 #define RPC_FC_VARIABLE_REPEAT          0x48
136 #define RPC_FC_FIXED_OFFSET             0x49
137 #define RPC_FC_VARIABLE_OFFSET          0x4a
138
139 #define RPC_FC_PP                       0x4b /* pointer layout */
140 /* FC_PP: FC_PAD layouts */
141 /* layouts: FC_NO_REPEAT FC_PAD instance */
142 /* instance: NdrFcShort(memofs), NdrFcShort(bufofs), desc */
143
144 #define RPC_FC_EMBEDDED_COMPLEX         0x4c
145 /* FC_EMBEDDED_COMPLEX: padding, NdrFcShort(typeofs) */
146
147 #define RPC_FC_IN_PARAM                 0x4d
148 /* FC_IN_PARAM: stacksiz, NdrFcShort(typeofs) */
149 #define RPC_FC_IN_PARAM_BASETYPE        0x4e
150 /* FC_IN_PARAM_BASETYPE: basetype */
151 #define RPC_FC_IN_PARAM_NO_FREE_INST    0x4f
152 #define RPC_FC_IN_OUT_PARAM             0x50
153 /* FC_IN_OUT_PARAM: stacksiz, NdrFcShort(typeofs) */
154 #define RPC_FC_OUT_PARAM                0x51
155 /* FC_OUT_PARAM: stacksiz, NdrFcShort(typeofs) */
156 #define RPC_FC_RETURN_PARAM             0x52
157 /* FC_RETURN_PARAM: stacksiz, NdrFcShort(typeofs) */
158 #define RPC_FC_RETURN_PARAM_BASETYPE    0x53
159 /* FC_RETURN_PARAM_BASETYPE: basetype */
160
161 #define RPC_FC_DEREFERENCE              0x54
162
163 #define RPC_FC_CALLBACK                 0x59
164
165 #define RPC_FC_CONSTANT_IID             0x5a
166 /* FC_CONSTANT_IID: NdrFcLong(), NdrFcShort(), NdrFcShort(), 8x () */
167
168 #define RPC_FC_END                      0x5b
169 #define RPC_FC_PAD                      0x5c
170
171 #define RPC_FC_USER_MARSHAL             0xb4
172
173 #define RPC_FC_RANGE                    0xb7
174
175 #define RPC_FC_INT3264                  0xb8
176 #define RPC_FC_UINT3264                 0xb9
177
178 /* correlation types */
179 #define RPC_FC_NORMAL_CONFORMANCE               0x00
180 #define RPC_FC_POINTER_CONFORMANCE              0x10
181 #define RPC_FC_TOP_LEVEL_CONFORMANCE            0x20
182 #define RPC_FC_CONSTANT_CONFORMANCE             0x40
183 #define RPC_FC_TOP_LEVEL_MULTID_CONFORMANCE     0x80
184
185 /* user marshal flags */
186 #define USER_MARSHAL_UNIQUE     0x80
187 #define USER_MARSHAL_REF        0x40
188 #define USER_MARSHAL_POINTER    0xc0
189 #define USER_MARSHAL_IID        0x20
190
191 #endif /* __WINE_RPCFC_H */