Prevent memory leak in freeing of the VertexBuffer.
[wine/multimedia.git] / include / rpcdce.h
blobc0b4e55d3087bbbc6e5dda8b20b967fc0a096734
1 /*
2 * Copyright (C) 2000 Francois Gouget
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_RPCDCE_H
20 #define __WINE_RPCDCE_H
22 #include "windef.h"
24 /* avoid delving into windows.h ifndef __WINE__; this
25 would pull in rpcndr.h, which needs rpcdcep.h, which
26 needs us, in turn, causing a compile failure */
27 #ifndef RPC_NO_WINDOWS_H
28 #define __NO_HAD_RPC_NO_WINDOWS_H
29 #define RPC_NO_WINDOWS_H
30 #endif
32 #include "rpc.h"
34 #ifdef __NO_HAD_RPC_NO_WINDOWS_H
35 #undef RPC_NO_WINDOWS_H
36 #undef __NO_HAD_RPC_NO_WINDOWS_H
37 #endif
39 #ifndef GUID_DEFINED
40 #include "guiddef.h"
41 #endif
43 #ifndef UUID_DEFINED
44 #define UUID_DEFINED
45 typedef GUID UUID;
46 #endif
48 typedef void* RPC_AUTH_IDENTITY_HANDLE;
49 typedef void* RPC_AUTHZ_HANDLE;
50 typedef void* RPC_IF_HANDLE;
51 typedef I_RPC_HANDLE RPC_BINDING_HANDLE;
52 typedef RPC_BINDING_HANDLE handle_t;
53 #define rpc_binding_handle_t RPC_BINDING_HANDLE
54 #define RPC_MGR_EPV void
56 typedef struct _RPC_BINDING_VECTOR
58 unsigned long Count;
59 RPC_BINDING_HANDLE BindingH[1];
60 } RPC_BINDING_VECTOR, *PRPC_BINDING_VECTOR;
61 #define rpc_binding_vector_t RPC_BINDING_VECTOR
63 typedef struct _UUID_VECTOR
65 unsigned long Count;
66 UUID *Uuid[1];
67 } UUID_VECTOR, *PUUID_VECTOR;
68 #define uuid_vector_t UUID_VECTOR
70 typedef struct _RPC_IF_ID
72 UUID Uuid;
73 unsigned short VersMajor;
74 unsigned short VersMinor;
75 } RPC_IF_ID;
77 #define RPC_C_BINDING_INFINITE_TIMEOUT 10
78 #define RPC_C_BINDING_MIN_TIMEOUT 0
79 #define RPC_C_BINDING_DEFAULT_TIMEOUT 5
80 #define RPC_C_BINDING_MAX_TIMEOUT 9
82 #define RPC_C_CANCEL_INFINITE_TIMEOUT -1
84 #define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
85 #define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
87 /* RPC_POLICY EndpointFlags */
88 #define RPC_C_BIND_TO_ALL_NICS 0x1
89 #define RPC_C_USE_INTERNET_PORT 0x1
90 #define RPC_C_USE_INTRANET_PORT 0x2
91 #define RPC_C_DONT_FAIL 0x4
93 /* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
94 #define RPC_C_MQ_TEMPORARY 0x0000
95 #define RPC_C_MQ_PERMANENT 0x0001
96 #define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
97 #define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
98 #define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
99 #define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
100 #define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
103 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, LPVOID Context );
104 typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)();
106 typedef struct _RPC_POLICY
108 UINT Length;
109 ULONG EndpointFlags;
110 ULONG NICFlags;
111 } RPC_POLICY, *PRPC_POLICY;
113 /* RpcServerRegisterIfEx Flags */
114 #define RPC_IF_AUTOLISTEN 0x1
115 #define RPC_IF_OLE 0x2
116 #define RPC_IF_ALLOW_UNKNOWN_AUTHORITY 0x4
117 #define RPC_IF_ALLOW_SECURE_ONLY 0x8
119 RPCRTAPI RPC_STATUS RPC_ENTRY
120 RpcBindingCopy( RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE* DestinationBinding );
122 RPCRTAPI RPC_STATUS RPC_ENTRY
123 RpcBindingFree( RPC_BINDING_HANDLE* Binding );
125 RPCRTAPI RPC_STATUS RPC_ENTRY
126 RpcBindingInqObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
127 RPCRTAPI RPC_STATUS RPC_ENTRY
128 RpcBindingReset( RPC_BINDING_HANDLE Binding );
129 RPCRTAPI RPC_STATUS RPC_ENTRY
130 RpcBindingSetObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
132 RPCRTAPI RPC_STATUS RPC_ENTRY
133 RpcBindingFromStringBindingA( LPSTR StringBinding, RPC_BINDING_HANDLE* Binding );
134 RPCRTAPI RPC_STATUS RPC_ENTRY
135 RpcBindingFromStringBindingW( LPWSTR StringBinding, RPC_BINDING_HANDLE* Binding );
136 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
138 RPCRTAPI RPC_STATUS RPC_ENTRY
139 RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, LPSTR* StringBinding );
140 RPCRTAPI RPC_STATUS RPC_ENTRY
141 RpcBindingToStringBindingW( RPC_BINDING_HANDLE Binding, LPWSTR* StringBinding );
142 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
144 RPCRTAPI RPC_STATUS RPC_ENTRY
145 RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector );
147 RPCRTAPI RPC_STATUS RPC_ENTRY
148 RpcStringBindingComposeA( LPSTR ObjUuid, LPSTR Protseq, LPSTR NetworkAddr,
149 LPSTR Endpoint, LPSTR Options, LPSTR* StringBinding );
150 RPCRTAPI RPC_STATUS RPC_ENTRY
151 RpcStringBindingComposeW( LPWSTR ObjUuid, LPWSTR Protseq, LPWSTR NetworkAddr,
152 LPWSTR Endpoint, LPWSTR Options, LPWSTR* StringBinding );
153 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
155 RPCRTAPI RPC_STATUS RPC_ENTRY
156 RpcStringBindingParseA( LPSTR StringBinding, LPSTR* ObjUuid, LPSTR* Protseq,
157 LPSTR* NetworkAddr, LPSTR* Endpoint, LPSTR* NetworkOptions );
158 RPCRTAPI RPC_STATUS RPC_ENTRY
159 RpcStringBindingParseW( LPWSTR StringBinding, LPWSTR* ObjUuid, LPWSTR* Protseq,
160 LPWSTR* NetworkAddr, LPWSTR* Endpoint, LPWSTR* NetworkOptions );
161 #define RpcStringBindingParse WINELIB_NAME_AW(RpcStringBindingParse)
163 RPCRTAPI RPC_STATUS RPC_ENTRY
164 RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE IfSpec );
166 RPCRTAPI RPC_STATUS RPC_ENTRY
167 RpcEpRegisterA( RPC_IF_HANDLE IfSpec, PRPC_BINDING_VECTOR BindingVector,
168 PUUID_VECTOR UuidVector, LPSTR Annotation );
169 RPCRTAPI RPC_STATUS RPC_ENTRY
170 RpcEpRegisterW( RPC_IF_HANDLE IfSpec, PRPC_BINDING_VECTOR BindingVector,
171 PUUID_VECTOR UuidVector, LPWSTR Annotation );
172 #define RpcEpRegister WINELIB_NAME_AW(RpcEpRegister)
174 RPCRTAPI RPC_STATUS RPC_ENTRY
175 RpcEpRegisterNoReplaceA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
176 UUID_VECTOR* UuidVector, LPSTR Annotation );
177 RPCRTAPI RPC_STATUS RPC_ENTRY
178 RpcEpRegisterNoReplaceW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
179 UUID_VECTOR* UuidVector, LPWSTR Annotation );
180 #define RpcEpRegisterNoReplace WINELIB_NAME_AW(RpcEpRegisterNoReplace)
182 RPCRTAPI RPC_STATUS RPC_ENTRY
183 RpcEpUnregister( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
184 UUID_VECTOR* UuidVector );
186 RPCRTAPI RPC_STATUS RPC_ENTRY
187 RpcServerInqBindings( RPC_BINDING_VECTOR** BindingVector );
189 RPCRTAPI RPC_STATUS RPC_ENTRY
190 RpcServerListen( UINT MinimumCallThreads, UINT MaxCalls, UINT DontWait );
192 RPCRTAPI RPC_STATUS RPC_ENTRY
193 RpcMgmtWaitServerListen( void );
195 RPCRTAPI RPC_STATUS RPC_ENTRY
196 RpcMgmtStopServerListening( RPC_BINDING_HANDLE Binding );
198 RPCRTAPI RPC_STATUS RPC_ENTRY
199 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
201 RPCRTAPI RPC_STATUS RPC_ENTRY
202 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
203 UINT Flags, UINT MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
205 RPCRTAPI RPC_STATUS RPC_ENTRY
206 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
207 UINT Flags, UINT MaxCalls, UINT MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
209 RPCRTAPI RPC_STATUS RPC_ENTRY
210 RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, UINT WaitForCallsToComplete );
212 RPCRTAPI RPC_STATUS RPC_ENTRY
213 RpcServerUnregisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, int RundownContextHandles );
216 RPCRTAPI RPC_STATUS RPC_ENTRY
217 RpcServerUseProtseqA(LPSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
218 RPCRTAPI RPC_STATUS RPC_ENTRY
219 RpcServerUseProtseqW(LPWSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
220 #define RpcServerUseProtseq WINELIB_NAME_AW(RpcServerUseProtseq)
222 RPCRTAPI RPC_STATUS RPC_ENTRY
223 RpcServerUseProtseqEpA( LPSTR Protseq, UINT MaxCalls, LPSTR Endpoint, LPVOID SecurityDescriptor );
224 RPCRTAPI RPC_STATUS RPC_ENTRY
225 RpcServerUseProtseqEpW( LPWSTR Protseq, UINT MaxCalls, LPWSTR Endpoint, LPVOID SecurityDescriptor );
226 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
228 RPCRTAPI RPC_STATUS RPC_ENTRY
229 RpcServerUseProtseqEpExA( LPSTR Protseq, UINT MaxCalls, LPSTR Endpoint, LPVOID SecurityDescriptor,
230 PRPC_POLICY Policy );
231 RPCRTAPI RPC_STATUS RPC_ENTRY
232 RpcServerUseProtseqEpExW( LPWSTR Protseq, UINT MaxCalls, LPWSTR Endpoint, LPVOID SecurityDescriptor,
233 PRPC_POLICY Policy );
234 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
236 RPCRTAPI RPC_STATUS RPC_ENTRY
237 RpcServerRegisterAuthInfoA( LPSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
238 LPVOID Arg );
239 RPCRTAPI RPC_STATUS RPC_ENTRY
240 RpcServerRegisterAuthInfoW( LPWSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
241 LPVOID Arg );
242 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
244 RPCRTAPI RPC_STATUS RPC_ENTRY
245 RpcStringBindingComposeA( LPSTR ObjUuid, LPSTR Protseq, LPSTR NetworkAddr, LPSTR Endpoint,
246 LPSTR Options, LPSTR* StringBinding );
247 RPCRTAPI RPC_STATUS RPC_ENTRY
248 RpcStringBindingComposeW( LPWSTR ObjUuid, LPWSTR Protseq, LPWSTR NetworkAddr, LPWSTR Endpoint,
249 LPWSTR Options, LPWSTR* StringBinding );
250 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
252 RPCRTAPI RPC_STATUS RPC_ENTRY
253 RpcStringFreeA(unsigned char** String);
254 RPCRTAPI RPC_STATUS RPC_ENTRY
255 RpcStringFreeW(unsigned short** String);
256 #define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
258 RPCRTAPI RPC_STATUS RPC_ENTRY
259 UuidToStringA( UUID* Uuid, unsigned char** StringUuid );
260 RPCRTAPI RPC_STATUS RPC_ENTRY
261 UuidToStringW( UUID* Uuid, unsigned short** StringUuid );
262 #define UuidToString WINELIB_NAME_AW(UuidToString)
264 RPCRTAPI RPC_STATUS RPC_ENTRY
265 UuidFromStringA( unsigned char* StringUuid, UUID* Uuid );
266 RPCRTAPI RPC_STATUS RPC_ENTRY
267 UuidFromStringW( unsigned short* StringUuid, UUID* Uuid );
268 #define UuidFromString WINELIB_NAME_AW(UuidFromString)
270 RPCRTAPI RPC_STATUS RPC_ENTRY
271 UuidCreate( UUID* Uuid );
272 RPCRTAPI RPC_STATUS RPC_ENTRY
273 UuidCreateSequential( UUID* Uuid );
274 RPCRTAPI RPC_STATUS RPC_ENTRY
275 UuidCreateNil( UUID* Uuid );
276 RPCRTAPI signed int RPC_ENTRY
277 UuidCompare( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
278 RPCRTAPI int RPC_ENTRY
279 UuidEqual( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
280 RPCRTAPI unsigned short RPC_ENTRY
281 UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
282 RPCRTAPI int RPC_ENTRY
283 UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ );
285 #include "rpcdcep.h"
287 #endif /*__WINE_RPCDCE_H */