shdocvw: Try to guess scheme for IHTMLPrivateWindow navigation too.
[wine/multimedia.git] / include / rpcdce.h
blobdc2c8deae72e3ee03ef3d479376a9393d65bbdcb
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_RPCDCE_H
20 #define __WINE_RPCDCE_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
26 #ifndef IN
27 #define IN
28 #endif
29 #ifndef OUT
30 #define OUT
31 #endif
32 #ifndef OPTIONAL
33 #define OPTIONAL
34 #endif
36 #ifndef GUID_DEFINED
37 #include <guiddef.h>
38 #endif
40 #ifndef UUID_DEFINED
41 #define UUID_DEFINED
42 typedef GUID UUID;
43 #endif
45 typedef unsigned char* RPC_CSTR;
46 typedef unsigned short* RPC_WSTR;
47 typedef void* RPC_AUTH_IDENTITY_HANDLE;
48 typedef void* RPC_AUTHZ_HANDLE;
49 typedef void* RPC_IF_HANDLE;
50 typedef I_RPC_HANDLE RPC_BINDING_HANDLE;
51 typedef RPC_BINDING_HANDLE handle_t;
52 #define rpc_binding_handle_t RPC_BINDING_HANDLE
53 #define RPC_MGR_EPV void
55 typedef struct _RPC_BINDING_VECTOR
57 ULONG Count;
58 RPC_BINDING_HANDLE BindingH[1];
59 } RPC_BINDING_VECTOR;
60 #define rpc_binding_vector_t RPC_BINDING_VECTOR
62 typedef struct _UUID_VECTOR
64 ULONG Count;
65 UUID *Uuid[1];
66 } UUID_VECTOR;
67 #define uuid_vector_t UUID_VECTOR
69 typedef struct _RPC_IF_ID
71 UUID Uuid;
72 unsigned short VersMajor;
73 unsigned short VersMinor;
74 } RPC_IF_ID;
76 typedef struct
78 ULONG Count;
79 RPC_IF_ID *IfId[1];
80 } RPC_IF_ID_VECTOR;
82 typedef struct
84 unsigned int Count;
85 ULONG Stats[1];
86 } RPC_STATS_VECTOR;
88 typedef I_RPC_HANDLE *RPC_EP_INQ_HANDLE;
90 #define RPC_C_EP_ALL_ELTS 0
91 #define RPC_C_EP_MATCH_BY_IF 1
92 #define RPC_C_EP_MATCH_BY_OBJ 2
93 #define RPC_C_EP_MATCH_BY_BOTH 3
95 #define RPC_C_VERS_ALL 1
96 #define RPC_C_VERS_COMPATIBLE 2
97 #define RPC_C_VERS_EXACT 3
98 #define RPC_C_VERS_MAJOR_ONLY 4
99 #define RPC_C_VERS_UPTO 5
101 #define RPC_C_BINDING_INFINITE_TIMEOUT 10
102 #define RPC_C_BINDING_MIN_TIMEOUT 0
103 #define RPC_C_BINDING_DEFAULT_TIMEOUT 5
104 #define RPC_C_BINDING_MAX_TIMEOUT 9
106 #define RPC_C_CANCEL_INFINITE_TIMEOUT -1
108 #define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
109 #define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
111 #define RPC_PROTSEQ_TCP 0x1
112 #define RPC_PROTSEQ_NMP 0x2
113 #define RPC_PROTSEQ_LRPC 0x3
114 #define RPC_PROTSEQ_HTTP 0x4
116 /* RPC_POLICY EndpointFlags */
117 #define RPC_C_BIND_TO_ALL_NICS 0x1
118 #define RPC_C_USE_INTERNET_PORT 0x1
119 #define RPC_C_USE_INTRANET_PORT 0x2
120 #define RPC_C_DONT_FAIL 0x4
122 /* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
123 #define RPC_C_MQ_TEMPORARY 0x0000
124 #define RPC_C_MQ_PERMANENT 0x0001
125 #define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
126 #define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
127 #define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
128 #define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
129 #define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
131 #define RPC_C_AUTHN_LEVEL_DEFAULT 0
132 #define RPC_C_AUTHN_LEVEL_NONE 1
133 #define RPC_C_AUTHN_LEVEL_CONNECT 2
134 #define RPC_C_AUTHN_LEVEL_CALL 3
135 #define RPC_C_AUTHN_LEVEL_PKT 4
136 #define RPC_C_AUTHN_LEVEL_PKT_INTEGRITY 5
137 #define RPC_C_AUTHN_LEVEL_PKT_PRIVACY 6
139 #define RPC_C_AUTHN_NONE 0
140 #define RPC_C_AUTHN_DCE_PRIVATE 1
141 #define RPC_C_AUTHN_DCE_PUBLIC 2
142 #define RPC_C_AUTHN_DEC_PUBLIC 4
143 #define RPC_C_AUTHN_GSS_NEGOTIATE 9
144 #define RPC_C_AUTHN_WINNT 10
145 #define RPC_C_AUTHN_GSS_SCHANNEL 14
146 #define RPC_C_AUTHN_GSS_KERBEROS 16
147 #define RPC_C_AUTHN_DPA 17
148 #define RPC_C_AUTHN_MSN 18
149 #define RPC_C_AUTHN_DIGEST 21
150 #define RPC_C_AUTHN_MQ 100
151 #define RPC_C_AUTHN_DEFAULT 0xffffffff
153 #define RPC_C_AUTHZ_NONE 0
154 #define RPC_C_AUTHZ_NAME 1
155 #define RPC_C_AUTHZ_DCE 2
156 #define RPC_C_AUTHZ_DEFAULT 0xffffffff
158 /* values for RPC_SECURITY_QOS*::ImpersonationType */
159 #define RPC_C_IMP_LEVEL_DEFAULT 0
160 #define RPC_C_IMP_LEVEL_ANONYMOUS 1
161 #define RPC_C_IMP_LEVEL_IDENTIFY 2
162 #define RPC_C_IMP_LEVEL_IMPERSONATE 3
163 #define RPC_C_IMP_LEVEL_DELEGATE 4
165 /* values for RPC_SECURITY_QOS*::IdentityTracking */
166 #define RPC_C_QOS_IDENTITY_STATIC 0
167 #define RPC_C_QOS_IDENTITY_DYNAMIC 1
169 /* flags for RPC_SECURITY_QOS*::Capabilities */
170 #define RPC_C_QOS_CAPABILITIES_DEFAULT 0x0
171 #define RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH 0x1
172 #define RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC 0x2
173 #define RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY 0x4
175 /* values for RPC_SECURITY_QOS*::Version */
176 #define RPC_C_SECURITY_QOS_VERSION 1
177 #define RPC_C_SECURITY_QOS_VERSION_1 1
178 #define RPC_C_SECURITY_QOS_VERSION_2 2
180 /* flags for RPC_SECURITY_QOS_V2::AdditionalSecurityInfoType */
181 #define RPC_C_AUTHN_INFO_TYPE_HTTP 1
183 /* flags for RPC_HTTP_TRANSPORT_CREDENTIALS::Flags */
184 #define RPC_C_HTTP_FLAG_USE_SSL 0x1
185 #define RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME 0x2
187 /* values for RPC_HTTP_TRANSPORT_CREDENTIALS::AuthenticationTarget */
188 #define RPC_C_HTTP_AUTHN_TARGET_SERVER 1
189 #define RPC_C_HTTP_AUTHN_TARGET_PROXY 2
191 #define RPC_C_HTTP_AUTHN_SCHEME_BASIC 0x01
192 #define RPC_C_HTTP_AUTHN_SCHEME_NTLM 0x02
193 #define RPC_C_HTTP_AUTHN_SCHEME_PASSPORT 0x04
194 #define RPC_C_HTTP_AUTHN_SCHEME_DIGEST 0x08
195 #define RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE 0x10
197 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, void *Context );
198 typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)(void *, RPC_WSTR, ULONG, void **, RPC_STATUS *);
200 typedef struct _RPC_POLICY
202 unsigned int Length;
203 ULONG EndpointFlags;
204 ULONG NICFlags;
205 } RPC_POLICY, *PRPC_POLICY;
207 typedef struct _SEC_WINNT_AUTH_IDENTITY_W
209 unsigned short* User;
210 ULONG UserLength;
211 unsigned short* Domain;
212 ULONG DomainLength;
213 unsigned short* Password;
214 ULONG PasswordLength;
215 ULONG Flags;
216 } SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W;
218 typedef struct _SEC_WINNT_AUTH_IDENTITY_A
220 unsigned char* User;
221 ULONG UserLength;
222 unsigned char* Domain;
223 ULONG DomainLength;
224 unsigned char* Password;
225 ULONG PasswordLength;
226 ULONG Flags;
227 } SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A;
229 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W
231 SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials;
232 ULONG Flags;
233 ULONG AuthenticationTarget;
234 ULONG NumberOfAuthnSchemes;
235 ULONG *AuthnSchemes;
236 unsigned short *ServerCertificateSubject;
237 } RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W;
239 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A
241 SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials;
242 ULONG Flags;
243 ULONG AuthenticationTarget;
244 ULONG NumberOfAuthnSchemes;
245 ULONG *AuthnSchemes;
246 unsigned char *ServerCertificateSubject;
247 } RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A;
249 typedef struct _RPC_SECURITY_QOS {
250 ULONG Version;
251 ULONG Capabilities;
252 ULONG IdentityTracking;
253 ULONG ImpersonationType;
254 } RPC_SECURITY_QOS, *PRPC_SECURITY_QOS;
256 typedef struct _RPC_SECURITY_QOS_V2_W
258 ULONG Version;
259 ULONG Capabilities;
260 ULONG IdentityTracking;
261 ULONG ImpersonationType;
262 ULONG AdditionalSecurityInfoType;
263 union
265 RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
266 } u;
267 } RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W;
269 typedef struct _RPC_SECURITY_QOS_V2_A
271 ULONG Version;
272 ULONG Capabilities;
273 ULONG IdentityTracking;
274 ULONG ImpersonationType;
275 ULONG AdditionalSecurityInfoType;
276 union
278 RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
279 } u;
280 } RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A;
282 #define _SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(_SEC_WINNT_AUTH_IDENTITY_)
283 #define SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(SEC_WINNT_AUTH_IDENTITY_)
284 #define PSEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(PSEC_WINNT_AUTH_IDENTITY_)
286 #define RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(RPC_HTTP_TRANSPORT_CREDENTIALS_)
287 #define PRPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_)
288 #define _RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(_RPC_HTTP_TRANSPORT_CREDENTIALS_)
290 #define RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(RPC_SECURITY_QOS_V2_)
291 #define PRPC_SECURITY_QOS_V2 WINELIB_NAME_AW(PRPC_SECURITY_QOS_V2_)
292 #define _RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(_RPC_SECURITY_QOS_V2_)
294 /* SEC_WINNT_AUTH Flags */
295 #define SEC_WINNT_AUTH_IDENTITY_ANSI 0x1
296 #define SEC_WINNT_AUTH_IDENTITY_UNICODE 0x2
298 /* RpcServerRegisterIfEx Flags */
299 #define RPC_IF_AUTOLISTEN 0x01
300 #define RPC_IF_OLE 0x02
301 #define RPC_IF_ALLOW_UNKNOWN_AUTHORITY 0x04
302 #define RPC_IF_ALLOW_SECURE_ONLY 0x08
303 #define RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH 0x10
304 #define RPC_IF_ALLOW_LOCAL_ONLY 0x20
305 #define RPC_IF_SEC_NO_CACHE 0x40
307 RPC_STATUS RPC_ENTRY DceErrorInqTextA(RPC_STATUS e, RPC_CSTR buffer);
308 RPC_STATUS RPC_ENTRY DceErrorInqTextW(RPC_STATUS e, RPC_WSTR buffer);
309 #define DceErrorInqText WINELIB_NAME_AW(DceErrorInqText)
311 RPCRTAPI DECLSPEC_NORETURN void RPC_ENTRY
312 RpcRaiseException( RPC_STATUS exception );
314 RPCRTAPI RPC_STATUS RPC_ENTRY
315 RpcBindingCopy( RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE* DestinationBinding );
317 RPCRTAPI RPC_STATUS RPC_ENTRY
318 RpcBindingFree( RPC_BINDING_HANDLE* Binding );
320 RPCRTAPI RPC_STATUS RPC_ENTRY
321 RpcBindingInqObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
322 RPCRTAPI RPC_STATUS RPC_ENTRY
323 RpcBindingInqOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR *OptionValue );
324 RPCRTAPI RPC_STATUS RPC_ENTRY
325 RpcBindingReset( RPC_BINDING_HANDLE Binding );
326 RPCRTAPI RPC_STATUS RPC_ENTRY
327 RpcBindingSetObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
328 RPCRTAPI RPC_STATUS RPC_ENTRY
329 RpcBindingSetOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR OptionValue );
330 RPCRTAPI RPC_STATUS RPC_ENTRY
331 RpcObjectSetType( UUID* ObjUuid, UUID* TypeUuid );
333 RPCRTAPI RPC_STATUS RPC_ENTRY
334 RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BINDING_HANDLE* Binding );
335 RPCRTAPI RPC_STATUS RPC_ENTRY
336 RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BINDING_HANDLE* Binding );
337 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
339 RPCRTAPI RPC_STATUS RPC_ENTRY
340 RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, RPC_CSTR *StringBinding );
341 RPCRTAPI RPC_STATUS RPC_ENTRY
342 RpcBindingToStringBindingW( RPC_BINDING_HANDLE Binding, RPC_WSTR *StringBinding );
343 #define RpcBindingToStringBinding WINELIB_NAME_AW(RpcBindingToStringBinding)
345 RPCRTAPI RPC_STATUS RPC_ENTRY
346 RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector );
348 RPCRTAPI RPC_STATUS RPC_ENTRY
349 RpcStringBindingComposeA( RPC_CSTR ObjUuid, RPC_CSTR Protseq, RPC_CSTR NetworkAddr,
350 RPC_CSTR Endpoint, RPC_CSTR Options, RPC_CSTR *StringBinding );
351 RPCRTAPI RPC_STATUS RPC_ENTRY
352 RpcStringBindingComposeW( RPC_WSTR ObjUuid, RPC_WSTR Protseq, RPC_WSTR NetworkAddr,
353 RPC_WSTR Endpoint, RPC_WSTR Options, RPC_WSTR *StringBinding );
354 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
356 RPCRTAPI RPC_STATUS RPC_ENTRY
357 RpcStringBindingParseA( RPC_CSTR StringBinding, RPC_CSTR *ObjUuid, RPC_CSTR *Protseq,
358 RPC_CSTR *NetworkAddr, RPC_CSTR *Endpoint, RPC_CSTR *NetworkOptions );
359 RPCRTAPI RPC_STATUS RPC_ENTRY
360 RpcStringBindingParseW( RPC_WSTR StringBinding, RPC_WSTR *ObjUuid, RPC_WSTR *Protseq,
361 RPC_WSTR *NetworkAddr, RPC_WSTR *Endpoint, RPC_WSTR *NetworkOptions );
362 #define RpcStringBindingParse WINELIB_NAME_AW(RpcStringBindingParse)
364 RPCRTAPI RPC_STATUS RPC_ENTRY
365 RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE IfSpec );
367 RPCRTAPI RPC_STATUS RPC_ENTRY
368 RpcEpRegisterA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
369 UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
370 RPCRTAPI RPC_STATUS RPC_ENTRY
371 RpcEpRegisterW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
372 UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
373 #define RpcEpRegister WINELIB_NAME_AW(RpcEpRegister)
375 RPCRTAPI RPC_STATUS RPC_ENTRY
376 RpcEpRegisterNoReplaceA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
377 UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
378 RPCRTAPI RPC_STATUS RPC_ENTRY
379 RpcEpRegisterNoReplaceW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
380 UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
381 #define RpcEpRegisterNoReplace WINELIB_NAME_AW(RpcEpRegisterNoReplace)
383 RPCRTAPI RPC_STATUS RPC_ENTRY
384 RpcEpUnregister( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
385 UUID_VECTOR* UuidVector );
387 RPCRTAPI RPC_STATUS RPC_ENTRY
388 RpcServerInqBindings( RPC_BINDING_VECTOR** BindingVector );
390 RPCRTAPI RPC_STATUS RPC_ENTRY
391 RpcServerListen( unsigned int MinimumCallThreads, unsigned int MaxCalls, unsigned int DontWait );
393 RPCRTAPI RPC_STATUS RPC_ENTRY
394 RpcMgmtEnableIdleCleanup( void );
396 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetCancelTimeout(LONG);
398 RPCRTAPI RPC_STATUS RPC_ENTRY
399 RpcMgmtWaitServerListen( void );
401 RPCRTAPI RPC_STATUS RPC_ENTRY
402 RpcMgmtInqStats( RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR **Statistics );
404 RPCRTAPI RPC_STATUS RPC_ENTRY
405 RpcMgmtStopServerListening( RPC_BINDING_HANDLE Binding );
407 RPCRTAPI RPC_STATUS RPC_ENTRY
408 RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
410 RPCRTAPI RPC_STATUS RPC_ENTRY
411 RpcMgmtInqIfIds( RPC_BINDING_HANDLE Binding, RPC_IF_ID_VECTOR** IfIdVector );
413 RPCRTAPI RPC_STATUS RPC_ENTRY
414 RpcMgmtEpEltInqBegin( RPC_BINDING_HANDLE EpBinding, ULONG InquiryType, RPC_IF_ID *IfId,
415 ULONG VersOption, UUID *ObjectUuid, RPC_EP_INQ_HANDLE *InquiryContext);
417 RPCRTAPI RPC_STATUS RPC_ENTRY
418 RpcMgmtSetComTimeout( RPC_BINDING_HANDLE Binding, unsigned int Timeout );
420 RPCRTAPI RPC_STATUS RPC_ENTRY
421 RpcMgmtSetServerStackSize( ULONG ThreadStackSize );
423 RPCRTAPI RPC_STATUS RPC_ENTRY
424 RpcMgmtStatsVectorFree( RPC_STATS_VECTOR **StatsVector );
426 RPCRTAPI RPC_STATUS RPC_ENTRY
427 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
429 RPCRTAPI RPC_STATUS RPC_ENTRY
430 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
431 unsigned int Flags, unsigned int MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
433 RPCRTAPI RPC_STATUS RPC_ENTRY
434 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
435 unsigned int Flags, unsigned int MaxCalls, unsigned int MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
437 RPCRTAPI RPC_STATUS RPC_ENTRY
438 RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, unsigned int WaitForCallsToComplete );
440 RPCRTAPI RPC_STATUS RPC_ENTRY
441 RpcServerUnregisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, int RundownContextHandles );
444 RPCRTAPI RPC_STATUS RPC_ENTRY
445 RpcServerUseProtseqA(RPC_CSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
446 RPCRTAPI RPC_STATUS RPC_ENTRY
447 RpcServerUseProtseqW(RPC_WSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
448 #define RpcServerUseProtseq WINELIB_NAME_AW(RpcServerUseProtseq)
450 RPCRTAPI RPC_STATUS RPC_ENTRY
451 RpcServerUseProtseqEpA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor );
452 RPCRTAPI RPC_STATUS RPC_ENTRY
453 RpcServerUseProtseqEpW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor );
454 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
456 RPCRTAPI RPC_STATUS RPC_ENTRY
457 RpcServerUseProtseqEpExA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor,
458 PRPC_POLICY Policy );
459 RPCRTAPI RPC_STATUS RPC_ENTRY
460 RpcServerUseProtseqEpExW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor,
461 PRPC_POLICY Policy );
462 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
464 RPCRTAPI RPC_STATUS RPC_ENTRY
465 RpcServerRegisterAuthInfoA( RPC_CSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
466 void *Arg );
467 RPCRTAPI RPC_STATUS RPC_ENTRY
468 RpcServerRegisterAuthInfoW( RPC_WSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
469 void *Arg );
470 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
472 RPCRTAPI RPC_STATUS RPC_ENTRY
473 RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
474 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
475 RPC_SECURITY_QOS *SecurityQos );
477 RPCRTAPI RPC_STATUS RPC_ENTRY
478 RpcBindingSetAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
479 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
480 RPC_SECURITY_QOS *SecurityQos );
481 #define RpcBindingSetAuthInfoEx WINELIB_NAME_AW(RpcBindingSetAuthInfoEx)
483 RPCRTAPI RPC_STATUS RPC_ENTRY
484 RpcBindingSetAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
485 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
487 RPCRTAPI RPC_STATUS RPC_ENTRY
488 RpcBindingSetAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
489 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
490 #define RpcBindingSetAuthInfo WINELIB_NAME_AW(RpcBindingSetAuthInfo)
492 RPCRTAPI RPC_STATUS RPC_ENTRY
493 RpcBindingInqAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
494 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
495 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
497 RPCRTAPI RPC_STATUS RPC_ENTRY
498 RpcBindingInqAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
499 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
500 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
501 #define RpcBindingInqAuthInfoEx WINELIB_NAME_AW(RpcBindingInqAuthInfoEx)
503 RPCRTAPI RPC_STATUS RPC_ENTRY
504 RpcBindingInqAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
505 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
507 RPCRTAPI RPC_STATUS RPC_ENTRY
508 RpcBindingInqAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
509 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
510 #define RpcBindingInqAuthInfo WINELIB_NAME_AW(RpcBindingInqAuthInfo)
512 RPCRTAPI RPC_STATUS RPC_ENTRY
513 RpcBindingInqAuthClientA( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
514 RPC_CSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
515 ULONG *AuthzSvc );
517 RPCRTAPI RPC_STATUS RPC_ENTRY
518 RpcBindingInqAuthClientW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
519 RPC_WSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
520 ULONG *AuthzSvc );
521 #define RpcBindingInqAuthClient WINELIB_NAME_AW(RpcBindingInqAuthClient)
523 RPCRTAPI RPC_STATUS RPC_ENTRY
524 RpcBindingInqAuthClientExA( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
525 RPC_CSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
526 ULONG *AuthzSvc, ULONG Flags );
528 RPCRTAPI RPC_STATUS RPC_ENTRY
529 RpcBindingInqAuthClientExW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
530 RPC_WSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
531 ULONG *AuthzSvc, ULONG Flags );
532 #define RpcBindingInqAuthClientEx WINELIB_NAME_AW(RpcBindingInqAuthClientEx)
534 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThread(void*);
535 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThreadEx(void*,LONG);
537 RPCRTAPI RPC_STATUS RPC_ENTRY
538 RpcImpersonateClient( RPC_BINDING_HANDLE Binding );
540 RPCRTAPI RPC_STATUS RPC_ENTRY
541 RpcNetworkIsProtseqValidA( RPC_CSTR protseq );
542 RPCRTAPI RPC_STATUS RPC_ENTRY
543 RpcNetworkIsProtseqValidW( RPC_WSTR protseq );
544 #define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
546 RPCRTAPI RPC_STATUS RPC_ENTRY
547 RpcRevertToSelf( void );
548 RPCRTAPI RPC_STATUS RPC_ENTRY
549 RpcRevertToSelfEx( RPC_BINDING_HANDLE Binding );
551 RPCRTAPI RPC_STATUS RPC_ENTRY
552 RpcStringFreeA(RPC_CSTR* String);
553 RPCRTAPI RPC_STATUS RPC_ENTRY
554 RpcStringFreeW(RPC_WSTR* String);
555 #define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
557 RPCRTAPI RPC_STATUS RPC_ENTRY
558 UuidToStringA( UUID* Uuid, RPC_CSTR* StringUuid );
559 RPCRTAPI RPC_STATUS RPC_ENTRY
560 UuidToStringW( UUID* Uuid, RPC_WSTR* StringUuid );
561 #define UuidToString WINELIB_NAME_AW(UuidToString)
563 RPCRTAPI RPC_STATUS RPC_ENTRY
564 UuidFromStringA( RPC_CSTR StringUuid, UUID* Uuid );
565 RPCRTAPI RPC_STATUS RPC_ENTRY
566 UuidFromStringW( RPC_WSTR StringUuid, UUID* Uuid );
567 #define UuidFromString WINELIB_NAME_AW(UuidFromString)
569 RPCRTAPI RPC_STATUS RPC_ENTRY
570 UuidCreate( UUID* Uuid );
571 RPCRTAPI RPC_STATUS RPC_ENTRY
572 UuidCreateSequential( UUID* Uuid );
573 RPCRTAPI RPC_STATUS RPC_ENTRY
574 UuidCreateNil( UUID* Uuid );
575 RPCRTAPI signed int RPC_ENTRY
576 UuidCompare( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
577 RPCRTAPI int RPC_ENTRY
578 UuidEqual( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
579 RPCRTAPI unsigned short RPC_ENTRY
580 UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
581 RPCRTAPI int RPC_ENTRY
582 UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ );
584 #ifdef __cplusplus
586 #endif
588 #include <rpcdcep.h>
590 #endif /*__WINE_RPCDCE_H */