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
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
58 RPC_BINDING_HANDLE BindingH[1];
60 #define rpc_binding_vector_t RPC_BINDING_VECTOR
62 typedef struct _UUID_VECTOR
67 #define uuid_vector_t UUID_VECTOR
69 typedef struct _RPC_IF_ID
72 unsigned short VersMajor;
73 unsigned short VersMinor;
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 /* RPC_POLICY EndpointFlags */
112 #define RPC_C_BIND_TO_ALL_NICS 0x1
113 #define RPC_C_USE_INTERNET_PORT 0x1
114 #define RPC_C_USE_INTRANET_PORT 0x2
115 #define RPC_C_DONT_FAIL 0x4
117 /* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
118 #define RPC_C_MQ_TEMPORARY 0x0000
119 #define RPC_C_MQ_PERMANENT 0x0001
120 #define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
121 #define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
122 #define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
123 #define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
124 #define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
126 #define RPC_C_AUTHN_LEVEL_DEFAULT 0
127 #define RPC_C_AUTHN_LEVEL_NONE 1
128 #define RPC_C_AUTHN_LEVEL_CONNECT 2
129 #define RPC_C_AUTHN_LEVEL_CALL 3
130 #define RPC_C_AUTHN_LEVEL_PKT 4
131 #define RPC_C_AUTHN_LEVEL_PKT_INTEGRITY 5
132 #define RPC_C_AUTHN_LEVEL_PKT_PRIVACY 6
134 #define RPC_C_AUTHN_NONE 0
135 #define RPC_C_AUTHN_DCE_PRIVATE 1
136 #define RPC_C_AUTHN_DCE_PUBLIC 2
137 #define RPC_C_AUTHN_DEC_PUBLIC 4
138 #define RPC_C_AUTHN_GSS_NEGOTIATE 9
139 #define RPC_C_AUTHN_WINNT 10
140 #define RPC_C_AUTHN_GSS_SCHANNEL 14
141 #define RPC_C_AUTHN_GSS_KERBEROS 16
142 #define RPC_C_AUTHN_DPA 17
143 #define RPC_C_AUTHN_MSN 18
144 #define RPC_C_AUTHN_DIGEST 21
145 #define RPC_C_AUTHN_MQ 100
146 #define RPC_C_AUTHN_DEFAULT 0xffffffff
148 #define RPC_C_AUTHZ_NONE 0
149 #define RPC_C_AUTHZ_NAME 1
150 #define RPC_C_AUTHZ_DCE 2
151 #define RPC_C_AUTHZ_DEFAULT 0xffffffff
153 /* values for RPC_SECURITY_QOS*::ImpersonationType */
154 #define RPC_C_IMP_LEVEL_DEFAULT 0
155 #define RPC_C_IMP_LEVEL_ANONYMOUS 1
156 #define RPC_C_IMP_LEVEL_IDENTIFY 2
157 #define RPC_C_IMP_LEVEL_IMPERSONATE 3
158 #define RPC_C_IMP_LEVEL_DELEGATE 4
160 /* values for RPC_SECURITY_QOS*::IdentityTracking */
161 #define RPC_C_QOS_IDENTIFY_STATIC 0
162 #define RPC_C_QOS_IDENTIFY_DYNAMIC 1
164 /* flags for RPC_SECURITY_QOS*::Capabilities */
165 #define RPC_C_QOS_CAPABILITIES_DEFAULT 0x0
166 #define RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH 0x1
167 #define RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC 0x2
168 #define RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY 0x4
170 /* values for RPC_SECURITY_QOS*::Version */
171 #define RPC_C_SECURITY_QOS_VERSION 1
172 #define RPC_C_SECURITY_QOS_VERSION_1 1
173 #define RPC_C_SECURITY_QOS_VERSION_2 2
175 /* flags for RPC_SECURITY_QOS_V2::AdditionalSecurityInfoType */
176 #define RPC_C_AUTHN_INFO_TYPE_HTTP 1
178 /* flags for RPC_HTTP_TRANSPORT_CREDENTIALS::Flags */
179 #define RPC_C_HTTP_FLAG_USE_SSL 0x1
180 #define RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME 0x2
182 /* values for RPC_HTTP_TRANSPORT_CREDENTIALS::AuthenticationTarget */
183 #define RPC_C_HTTP_AUTHN_TARGET_SERVER 1
184 #define RPC_C_HTTP_AUTHN_TARGET_PROXY 2
186 #define RPC_C_HTTP_AUTHN_SCHEME_BASIC 0x01
187 #define RPC_C_HTTP_AUTHN_SCHEME_NTLM 0x02
188 #define RPC_C_HTTP_AUTHN_SCHEME_PASSPORT 0x04
189 #define RPC_C_HTTP_AUTHN_SCHEME_DIGEST 0x08
190 #define RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE 0x10
192 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, void *Context );
193 typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)();
195 typedef struct _RPC_POLICY
200 } RPC_POLICY, *PRPC_POLICY;
202 typedef struct _SEC_WINNT_AUTH_IDENTITY_W
204 unsigned short* User;
206 unsigned short* Domain;
208 unsigned short* Password;
209 ULONG PasswordLength;
211 } SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W;
213 typedef struct _SEC_WINNT_AUTH_IDENTITY_A
217 unsigned char* Domain;
219 unsigned char* Password;
220 ULONG PasswordLength;
222 } SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A;
224 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W
226 SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials;
228 ULONG AuthenticationTarget;
229 ULONG NumberOfAuthnSchemes;
231 unsigned short *ServerCertificateSubject;
232 } RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W;
234 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A
236 SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials;
238 ULONG AuthenticationTarget;
239 ULONG NumberOfAuthnSchemes;
241 unsigned char *ServerCertificateSubject;
242 } RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A;
244 typedef struct _RPC_SECURITY_QOS {
247 ULONG IdentityTracking;
248 ULONG ImpersonationType;
249 } RPC_SECURITY_QOS, *PRPC_SECURITY_QOS;
251 typedef struct _RPC_SECURITY_QOS_V2_W
255 ULONG IdentityTracking;
256 ULONG ImpersonationType;
257 ULONG AdditionalSecurityInfoType;
260 RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
262 } RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W;
264 typedef struct _RPC_SECURITY_QOS_V2_A
268 ULONG IdentityTracking;
269 ULONG ImpersonationType;
270 ULONG AdditionalSecurityInfoType;
273 RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
275 } RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A;
277 #define _SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(_SEC_WINNT_AUTH_IDENTITY_)
278 #define SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(SEC_WINNT_AUTH_IDENTITY_)
279 #define PSEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(PSEC_WINNT_AUTH_IDENTITY_)
281 #define RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(RPC_HTTP_TRANSPORT_CREDENTIALS_)
282 #define PRPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_)
283 #define _RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(_RPC_HTTP_TRANSPORT_CREDENTIALS_)
285 #define RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(RPC_SECURITY_QOS_V2_)
286 #define PRPC_SECURITY_QOS_V2 WINELIB_NAME_AW(PRPC_SECURITY_QOS_V2_)
287 #define _RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(_RPC_SECURITY_QOS_V2_)
289 /* SEC_WINNT_AUTH Flags */
290 #define SEC_WINNT_AUTH_IDENTITY_ANSI 0x1
291 #define SEC_WINNT_AUTH_IDENTITY_UNICODE 0x2
293 /* RpcServerRegisterIfEx Flags */
294 #define RPC_IF_AUTOLISTEN 0x01
295 #define RPC_IF_OLE 0x02
296 #define RPC_IF_ALLOW_UNKNOWN_AUTHORITY 0x04
297 #define RPC_IF_ALLOW_SECURE_ONLY 0x08
298 #define RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH 0x10
299 #define RPC_IF_ALLOW_LOCAL_ONLY 0x20
300 #define RPC_IF_SEC_NO_CACHE 0x40
302 RPC_STATUS RPC_ENTRY DceErrorInqTextA(RPC_STATUS e, RPC_CSTR buffer);
303 RPC_STATUS RPC_ENTRY DceErrorInqTextW(RPC_STATUS e, RPC_WSTR buffer);
304 #define DceErrorInqText WINELIB_NAME_AW(DceErrorInqText)
306 RPCRTAPI DECLSPEC_NORETURN void RPC_ENTRY
307 RpcRaiseException( RPC_STATUS exception );
309 RPCRTAPI RPC_STATUS RPC_ENTRY
310 RpcBindingCopy( RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE* DestinationBinding );
312 RPCRTAPI RPC_STATUS RPC_ENTRY
313 RpcBindingFree( RPC_BINDING_HANDLE* Binding );
315 RPCRTAPI RPC_STATUS RPC_ENTRY
316 RpcBindingInqObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
317 RPCRTAPI RPC_STATUS RPC_ENTRY
318 RpcBindingInqOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR *OptionValue );
319 RPCRTAPI RPC_STATUS RPC_ENTRY
320 RpcBindingReset( RPC_BINDING_HANDLE Binding );
321 RPCRTAPI RPC_STATUS RPC_ENTRY
322 RpcBindingSetObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
323 RPCRTAPI RPC_STATUS RPC_ENTRY
324 RpcBindingSetOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR OptionValue );
325 RPCRTAPI RPC_STATUS RPC_ENTRY
326 RpcObjectSetType( UUID* ObjUuid, UUID* TypeUuid );
328 RPCRTAPI RPC_STATUS RPC_ENTRY
329 RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BINDING_HANDLE* Binding );
330 RPCRTAPI RPC_STATUS RPC_ENTRY
331 RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BINDING_HANDLE* Binding );
332 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
334 RPCRTAPI RPC_STATUS RPC_ENTRY
335 RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, RPC_CSTR *StringBinding );
336 RPCRTAPI RPC_STATUS RPC_ENTRY
337 RpcBindingToStringBindingW( RPC_BINDING_HANDLE Binding, RPC_WSTR *StringBinding );
338 #define RpcBindingToStringBinding WINELIB_NAME_AW(RpcBindingToStringBinding)
340 RPCRTAPI RPC_STATUS RPC_ENTRY
341 RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector );
343 RPCRTAPI RPC_STATUS RPC_ENTRY
344 RpcStringBindingComposeA( RPC_CSTR ObjUuid, RPC_CSTR Protseq, RPC_CSTR NetworkAddr,
345 RPC_CSTR Endpoint, RPC_CSTR Options, RPC_CSTR *StringBinding );
346 RPCRTAPI RPC_STATUS RPC_ENTRY
347 RpcStringBindingComposeW( RPC_WSTR ObjUuid, RPC_WSTR Protseq, RPC_WSTR NetworkAddr,
348 RPC_WSTR Endpoint, RPC_WSTR Options, RPC_WSTR *StringBinding );
349 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
351 RPCRTAPI RPC_STATUS RPC_ENTRY
352 RpcStringBindingParseA( RPC_CSTR StringBinding, RPC_CSTR *ObjUuid, RPC_CSTR *Protseq,
353 RPC_CSTR *NetworkAddr, RPC_CSTR *Endpoint, RPC_CSTR *NetworkOptions );
354 RPCRTAPI RPC_STATUS RPC_ENTRY
355 RpcStringBindingParseW( RPC_WSTR StringBinding, RPC_WSTR *ObjUuid, RPC_WSTR *Protseq,
356 RPC_WSTR *NetworkAddr, RPC_WSTR *Endpoint, RPC_WSTR *NetworkOptions );
357 #define RpcStringBindingParse WINELIB_NAME_AW(RpcStringBindingParse)
359 RPCRTAPI RPC_STATUS RPC_ENTRY
360 RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE IfSpec );
362 RPCRTAPI RPC_STATUS RPC_ENTRY
363 RpcEpRegisterA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
364 UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
365 RPCRTAPI RPC_STATUS RPC_ENTRY
366 RpcEpRegisterW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
367 UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
368 #define RpcEpRegister WINELIB_NAME_AW(RpcEpRegister)
370 RPCRTAPI RPC_STATUS RPC_ENTRY
371 RpcEpRegisterNoReplaceA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
372 UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
373 RPCRTAPI RPC_STATUS RPC_ENTRY
374 RpcEpRegisterNoReplaceW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
375 UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
376 #define RpcEpRegisterNoReplace WINELIB_NAME_AW(RpcEpRegisterNoReplace)
378 RPCRTAPI RPC_STATUS RPC_ENTRY
379 RpcEpUnregister( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
380 UUID_VECTOR* UuidVector );
382 RPCRTAPI RPC_STATUS RPC_ENTRY
383 RpcServerInqBindings( RPC_BINDING_VECTOR** BindingVector );
385 RPCRTAPI RPC_STATUS RPC_ENTRY
386 RpcServerListen( unsigned int MinimumCallThreads, unsigned int MaxCalls, unsigned int DontWait );
388 RPCRTAPI RPC_STATUS RPC_ENTRY
389 RpcMgmtEnableIdleCleanup( void );
391 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetCancelTimeout(LONG);
393 RPCRTAPI RPC_STATUS RPC_ENTRY
394 RpcMgmtWaitServerListen( void );
396 RPCRTAPI RPC_STATUS RPC_ENTRY
397 RpcMgmtInqStats( RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR **Statistics );
399 RPCRTAPI RPC_STATUS RPC_ENTRY
400 RpcMgmtStopServerListening( RPC_BINDING_HANDLE Binding );
402 RPCRTAPI RPC_STATUS RPC_ENTRY
403 RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
405 RPCRTAPI RPC_STATUS RPC_ENTRY
406 RpcMgmtInqIfIds( RPC_BINDING_HANDLE Binding, RPC_IF_ID_VECTOR** IfIdVector );
408 RPCRTAPI RPC_STATUS RPC_ENTRY
409 RpcMgmtEpEltInqBegin( RPC_BINDING_HANDLE EpBinding, ULONG InquiryType, RPC_IF_ID *IfId,
410 ULONG VersOption, UUID *ObjectUuid, RPC_EP_INQ_HANDLE *InquiryContext);
412 RPCRTAPI RPC_STATUS RPC_ENTRY
413 RpcMgmtSetComTimeout( RPC_BINDING_HANDLE Binding, unsigned int Timeout );
415 RPCRTAPI RPC_STATUS RPC_ENTRY
416 RpcMgmtSetServerStackSize( ULONG ThreadStackSize );
418 RPCRTAPI RPC_STATUS RPC_ENTRY
419 RpcMgmtStatsVectorFree( RPC_STATS_VECTOR **StatsVector );
421 RPCRTAPI RPC_STATUS RPC_ENTRY
422 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
424 RPCRTAPI RPC_STATUS RPC_ENTRY
425 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
426 unsigned int Flags, unsigned int MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
428 RPCRTAPI RPC_STATUS RPC_ENTRY
429 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
430 unsigned int Flags, unsigned int MaxCalls, unsigned int MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
432 RPCRTAPI RPC_STATUS RPC_ENTRY
433 RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, unsigned int WaitForCallsToComplete );
435 RPCRTAPI RPC_STATUS RPC_ENTRY
436 RpcServerUnregisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, int RundownContextHandles );
439 RPCRTAPI RPC_STATUS RPC_ENTRY
440 RpcServerUseProtseqA(RPC_CSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
441 RPCRTAPI RPC_STATUS RPC_ENTRY
442 RpcServerUseProtseqW(RPC_WSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
443 #define RpcServerUseProtseq WINELIB_NAME_AW(RpcServerUseProtseq)
445 RPCRTAPI RPC_STATUS RPC_ENTRY
446 RpcServerUseProtseqEpA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor );
447 RPCRTAPI RPC_STATUS RPC_ENTRY
448 RpcServerUseProtseqEpW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor );
449 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
451 RPCRTAPI RPC_STATUS RPC_ENTRY
452 RpcServerUseProtseqEpExA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor,
453 PRPC_POLICY Policy );
454 RPCRTAPI RPC_STATUS RPC_ENTRY
455 RpcServerUseProtseqEpExW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor,
456 PRPC_POLICY Policy );
457 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
459 RPCRTAPI RPC_STATUS RPC_ENTRY
460 RpcServerRegisterAuthInfoA( RPC_CSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
462 RPCRTAPI RPC_STATUS RPC_ENTRY
463 RpcServerRegisterAuthInfoW( RPC_WSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
465 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
467 RPCRTAPI RPC_STATUS RPC_ENTRY
468 RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
469 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
470 RPC_SECURITY_QOS *SecurityQos );
472 RPCRTAPI RPC_STATUS RPC_ENTRY
473 RpcBindingSetAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
474 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
475 RPC_SECURITY_QOS *SecurityQos );
476 #define RpcBindingSetAuthInfoEx WINELIB_NAME_AW(RpcBindingSetAuthInfoEx)
478 RPCRTAPI RPC_STATUS RPC_ENTRY
479 RpcBindingSetAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
480 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
482 RPCRTAPI RPC_STATUS RPC_ENTRY
483 RpcBindingSetAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
484 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
485 #define RpcBindingSetAuthInfo WINELIB_NAME_AW(RpcBindingSetAuthInfo)
487 RPCRTAPI RPC_STATUS RPC_ENTRY
488 RpcBindingInqAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
489 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
490 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
492 RPCRTAPI RPC_STATUS RPC_ENTRY
493 RpcBindingInqAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
494 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
495 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
496 #define RpcBindingInqAuthInfoEx WINELIB_NAME_AW(RpcBindingInqAuthInfoEx)
498 RPCRTAPI RPC_STATUS RPC_ENTRY
499 RpcBindingInqAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
500 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
502 RPCRTAPI RPC_STATUS RPC_ENTRY
503 RpcBindingInqAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
504 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
505 #define RpcBindingInqAuthInfo WINELIB_NAME_AW(RpcBindingInqAuthInfo)
507 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThread(void*);
508 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThreadEx(void*,LONG);
510 RPCRTAPI RPC_STATUS RPC_ENTRY
511 RpcImpersonateClient( RPC_BINDING_HANDLE Binding );
513 RPCRTAPI RPC_STATUS RPC_ENTRY
514 RpcNetworkIsProtseqValidA( RPC_CSTR protseq );
515 RPCRTAPI RPC_STATUS RPC_ENTRY
516 RpcNetworkIsProtseqValidW( RPC_WSTR protseq );
517 #define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
519 RPCRTAPI RPC_STATUS RPC_ENTRY
520 RpcRevertToSelf( void );
521 RPCRTAPI RPC_STATUS RPC_ENTRY
522 RpcRevertToSelfEx( RPC_BINDING_HANDLE Binding );
524 RPCRTAPI RPC_STATUS RPC_ENTRY
525 RpcStringFreeA(RPC_CSTR* String);
526 RPCRTAPI RPC_STATUS RPC_ENTRY
527 RpcStringFreeW(RPC_WSTR* String);
528 #define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
530 RPCRTAPI RPC_STATUS RPC_ENTRY
531 UuidToStringA( UUID* Uuid, RPC_CSTR* StringUuid );
532 RPCRTAPI RPC_STATUS RPC_ENTRY
533 UuidToStringW( UUID* Uuid, RPC_WSTR* StringUuid );
534 #define UuidToString WINELIB_NAME_AW(UuidToString)
536 RPCRTAPI RPC_STATUS RPC_ENTRY
537 UuidFromStringA( RPC_CSTR StringUuid, UUID* Uuid );
538 RPCRTAPI RPC_STATUS RPC_ENTRY
539 UuidFromStringW( RPC_WSTR StringUuid, UUID* Uuid );
540 #define UuidFromString WINELIB_NAME_AW(UuidFromString)
542 RPCRTAPI RPC_STATUS RPC_ENTRY
543 UuidCreate( UUID* Uuid );
544 RPCRTAPI RPC_STATUS RPC_ENTRY
545 UuidCreateSequential( UUID* Uuid );
546 RPCRTAPI RPC_STATUS RPC_ENTRY
547 UuidCreateNil( UUID* Uuid );
548 RPCRTAPI signed int RPC_ENTRY
549 UuidCompare( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
550 RPCRTAPI int RPC_ENTRY
551 UuidEqual( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
552 RPCRTAPI unsigned short RPC_ENTRY
553 UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
554 RPCRTAPI int RPC_ENTRY
555 UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ );
563 #endif /*__WINE_RPCDCE_H */