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;
82 typedef I_RPC_HANDLE *RPC_EP_INQ_HANDLE;
84 #define RPC_C_EP_ALL_ELTS 0
85 #define RPC_C_EP_MATCH_BY_IF 1
86 #define RPC_C_EP_MATCH_BY_OBJ 2
87 #define RPC_C_EP_MATCH_BY_BOTH 3
89 #define RPC_C_VERS_ALL 1
90 #define RPC_C_VERS_COMPATIBLE 2
91 #define RPC_C_VERS_EXACT 3
92 #define RPC_C_VERS_MAJOR_ONLY 4
93 #define RPC_C_VERS_UPTO 5
95 #define RPC_C_BINDING_INFINITE_TIMEOUT 10
96 #define RPC_C_BINDING_MIN_TIMEOUT 0
97 #define RPC_C_BINDING_DEFAULT_TIMEOUT 5
98 #define RPC_C_BINDING_MAX_TIMEOUT 9
100 #define RPC_C_CANCEL_INFINITE_TIMEOUT -1
102 #define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
103 #define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
105 /* RPC_POLICY EndpointFlags */
106 #define RPC_C_BIND_TO_ALL_NICS 0x1
107 #define RPC_C_USE_INTERNET_PORT 0x1
108 #define RPC_C_USE_INTRANET_PORT 0x2
109 #define RPC_C_DONT_FAIL 0x4
111 /* RPC_POLICY EndpointFlags specific to the Falcon/RPC transport */
112 #define RPC_C_MQ_TEMPORARY 0x0000
113 #define RPC_C_MQ_PERMANENT 0x0001
114 #define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
115 #define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
116 #define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
117 #define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
118 #define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
120 #define RPC_C_AUTHN_LEVEL_DEFAULT 0
121 #define RPC_C_AUTHN_LEVEL_NONE 1
122 #define RPC_C_AUTHN_LEVEL_CONNECT 2
123 #define RPC_C_AUTHN_LEVEL_CALL 3
124 #define RPC_C_AUTHN_LEVEL_PKT 4
125 #define RPC_C_AUTHN_LEVEL_PKT_INTEGRITY 5
126 #define RPC_C_AUTHN_LEVEL_PKT_PRIVACY 6
128 #define RPC_C_AUTHN_NONE 0
129 #define RPC_C_AUTHN_DCE_PRIVATE 1
130 #define RPC_C_AUTHN_DCE_PUBLIC 2
131 #define RPC_C_AUTHN_DEC_PUBLIC 4
132 #define RPC_C_AUTHN_GSS_NEGOTIATE 9
133 #define RPC_C_AUTHN_WINNT 10
134 #define RPC_C_AUTHN_GSS_SCHANNEL 14
135 #define RPC_C_AUTHN_GSS_KERBEROS 16
136 #define RPC_C_AUTHN_DPA 17
137 #define RPC_C_AUTHN_MSN 18
138 #define RPC_C_AUTHN_DIGEST 21
139 #define RPC_C_AUTHN_MQ 100
140 #define RPC_C_AUTHN_DEFAULT 0xffffffff
142 #define RPC_C_AUTHZ_NONE 0
143 #define RPC_C_AUTHZ_NAME 1
144 #define RPC_C_AUTHZ_DCE 2
145 #define RPC_C_AUTHZ_DEFAULT 0xffffffff
147 /* values for RPC_SECURITY_QOS*::ImpersonationType */
148 #define RPC_C_IMP_LEVEL_DEFAULT 0
149 #define RPC_C_IMP_LEVEL_ANONYMOUS 1
150 #define RPC_C_IMP_LEVEL_IDENTIFY 2
151 #define RPC_C_IMP_LEVEL_IMPERSONATE 3
152 #define RPC_C_IMP_LEVEL_DELEGATE 4
154 /* values for RPC_SECURITY_QOS*::IdentityTracking */
155 #define RPC_C_QOS_IDENTIFY_STATIC 0
156 #define RPC_C_QOS_IDENTIFY_DYNAMIC 1
158 /* flags for RPC_SECURITY_QOS*::Capabilities */
159 #define RPC_C_QOS_CAPABILITIES_DEFAULT 0x0
160 #define RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH 0x1
161 #define RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC 0x2
162 #define RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY 0x4
164 /* values for RPC_SECURITY_QOS*::Version */
165 #define RPC_C_SECURITY_QOS_VERSION 1
166 #define RPC_C_SECURITY_QOS_VERSION_1 1
167 #define RPC_C_SECURITY_QOS_VERSION_2 2
169 /* flags for RPC_SECURITY_QOS_V2::AdditionalSecurityInfoType */
170 #define RPC_C_AUTHN_INFO_TYPE_HTTP 1
172 /* flags for RPC_HTTP_TRANSPORT_CREDENTIALS::Flags */
173 #define RPC_C_HTTP_FLAG_USE_SSL 0x1
174 #define RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME 0x2
176 /* values for RPC_HTTP_TRANSPORT_CREDENTIALS::AuthenticationTarget */
177 #define RPC_C_HTTP_AUTHN_TARGET_SERVER 1
178 #define RPC_C_HTTP_AUTHN_TARGET_PROXY 2
180 #define RPC_C_HTTP_AUTHN_SCHEME_BASIC 0x01
181 #define RPC_C_HTTP_AUTHN_SCHEME_NTLM 0x02
182 #define RPC_C_HTTP_AUTHN_SCHEME_PASSPORT 0x04
183 #define RPC_C_HTTP_AUTHN_SCHEME_DIGEST 0x08
184 #define RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE 0x10
186 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN( RPC_IF_HANDLE InterfaceUuid, void *Context );
187 typedef void (__RPC_USER *RPC_AUTH_KEY_RETRIEVAL_FN)();
189 typedef struct _RPC_POLICY
192 unsigned long EndpointFlags;
193 unsigned long NICFlags;
194 } RPC_POLICY, *PRPC_POLICY;
196 typedef struct _SEC_WINNT_AUTH_IDENTITY_W
198 unsigned short* User;
199 unsigned long UserLength;
200 unsigned short* Domain;
201 unsigned long DomainLength;
202 unsigned short* Password;
203 unsigned long PasswordLength;
205 } SEC_WINNT_AUTH_IDENTITY_W, *PSEC_WINNT_AUTH_IDENTITY_W;
207 typedef struct _SEC_WINNT_AUTH_IDENTITY_A
210 unsigned long UserLength;
211 unsigned char* Domain;
212 unsigned long DomainLength;
213 unsigned char* Password;
214 unsigned long PasswordLength;
216 } SEC_WINNT_AUTH_IDENTITY_A, *PSEC_WINNT_AUTH_IDENTITY_A;
218 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W
220 SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials;
222 unsigned long AuthenticationTarget;
223 unsigned long NumberOfAuthnSchemes;
224 unsigned long *AuthnSchemes;
225 unsigned short *ServerCertificateSubject;
226 } RPC_HTTP_TRANSPORT_CREDENTIALS_W, *PRPC_HTTP_TRANSPORT_CREDENTIALS_W;
228 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A
230 SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials;
232 unsigned long AuthenticationTarget;
233 unsigned long NumberOfAuthnSchemes;
234 unsigned long *AuthnSchemes;
235 unsigned char *ServerCertificateSubject;
236 } RPC_HTTP_TRANSPORT_CREDENTIALS_A, *PRPC_HTTP_TRANSPORT_CREDENTIALS_A;
238 typedef struct _RPC_SECURITY_QOS {
239 unsigned long Version;
240 unsigned long Capabilities;
241 unsigned long IdentityTracking;
242 unsigned long ImpersonationType;
243 } RPC_SECURITY_QOS, *PRPC_SECURITY_QOS;
245 typedef struct _RPC_SECURITY_QOS_V2_W
247 unsigned long Version;
248 unsigned long Capabilities;
249 unsigned long IdentityTracking;
250 unsigned long ImpersonationType;
251 unsigned long AdditionalSecurityInfoType;
254 RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
256 } RPC_SECURITY_QOS_V2_W, *PRPC_SECURITY_QOS_V2_W;
258 typedef struct _RPC_SECURITY_QOS_V2_A
260 unsigned long Version;
261 unsigned long Capabilities;
262 unsigned long IdentityTracking;
263 unsigned long ImpersonationType;
264 unsigned long AdditionalSecurityInfoType;
267 RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
269 } RPC_SECURITY_QOS_V2_A, *PRPC_SECURITY_QOS_V2_A;
271 #define _SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(_SEC_WINNT_AUTH_IDENTITY_)
272 #define SEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(SEC_WINNT_AUTH_IDENTITY_)
273 #define PSEC_WINNT_AUTH_IDENTITY WINELIB_NAME_AW(PSEC_WINNT_AUTH_IDENTITY_)
275 #define RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(RPC_HTTP_TRANSPORT_CREDENTIALS_)
276 #define PRPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(PRPC_HTTP_TRANSPORT_CREDENTIALS_)
277 #define _RPC_HTTP_TRANSPORT_CREDENTIALS_ WINELIB_NAME_AW(_RPC_HTTP_TRANSPORT_CREDENTIALS_)
279 #define RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(RPC_SECURITY_QOS_V2_)
280 #define PRPC_SECURITY_QOS_V2 WINELIB_NAME_AW(PRPC_SECURITY_QOS_V2_)
281 #define _RPC_SECURITY_QOS_V2 WINELIB_NAME_AW(_RPC_SECURITY_QOS_V2_)
283 /* SEC_WINNT_AUTH Flags */
284 #define SEC_WINNT_AUTH_IDENTITY_ANSI 0x1
285 #define SEC_WINNT_AUTH_IDENTITY_UNICODE 0x2
287 /* RpcServerRegisterIfEx Flags */
288 #define RPC_IF_AUTOLISTEN 0x01
289 #define RPC_IF_OLE 0x02
290 #define RPC_IF_ALLOW_UNKNOWN_AUTHORITY 0x04
291 #define RPC_IF_ALLOW_SECURE_ONLY 0x08
292 #define RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH 0x10
293 #define RPC_IF_ALLOW_LOCAL_ONLY 0x20
294 #define RPC_IF_SEC_NO_CACHE 0x40
296 RPC_STATUS RPC_ENTRY DceErrorInqTextA(RPC_STATUS e, RPC_CSTR buffer);
297 RPC_STATUS RPC_ENTRY DceErrorInqTextW(RPC_STATUS e, RPC_WSTR buffer);
298 #define DceErrorInqText WINELIB_NAME_AW(DceErrorInqText)
300 RPCRTAPI DECLSPEC_NORETURN void RPC_ENTRY
301 RpcRaiseException( RPC_STATUS exception );
303 RPCRTAPI RPC_STATUS RPC_ENTRY
304 RpcBindingCopy( RPC_BINDING_HANDLE SourceBinding, RPC_BINDING_HANDLE* DestinationBinding );
306 RPCRTAPI RPC_STATUS RPC_ENTRY
307 RpcBindingFree( RPC_BINDING_HANDLE* Binding );
309 RPCRTAPI RPC_STATUS RPC_ENTRY
310 RpcBindingInqObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
311 RPCRTAPI RPC_STATUS RPC_ENTRY
312 RpcBindingInqOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR *OptionValue );
313 RPCRTAPI RPC_STATUS RPC_ENTRY
314 RpcBindingReset( RPC_BINDING_HANDLE Binding );
315 RPCRTAPI RPC_STATUS RPC_ENTRY
316 RpcBindingSetObject( RPC_BINDING_HANDLE Binding, UUID* ObjectUuid );
317 RPCRTAPI RPC_STATUS RPC_ENTRY
318 RpcBindingSetOption( RPC_BINDING_HANDLE Binding, ULONG Option, ULONG_PTR OptionValue );
319 RPCRTAPI RPC_STATUS RPC_ENTRY
320 RpcObjectSetType( UUID* ObjUuid, UUID* TypeUuid );
322 RPCRTAPI RPC_STATUS RPC_ENTRY
323 RpcBindingFromStringBindingA( RPC_CSTR StringBinding, RPC_BINDING_HANDLE* Binding );
324 RPCRTAPI RPC_STATUS RPC_ENTRY
325 RpcBindingFromStringBindingW( RPC_WSTR StringBinding, RPC_BINDING_HANDLE* Binding );
326 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
328 RPCRTAPI RPC_STATUS RPC_ENTRY
329 RpcBindingToStringBindingA( RPC_BINDING_HANDLE Binding, RPC_CSTR *StringBinding );
330 RPCRTAPI RPC_STATUS RPC_ENTRY
331 RpcBindingToStringBindingW( RPC_BINDING_HANDLE Binding, RPC_WSTR *StringBinding );
332 #define RpcBindingFromStringBinding WINELIB_NAME_AW(RpcBindingFromStringBinding)
334 RPCRTAPI RPC_STATUS RPC_ENTRY
335 RpcBindingVectorFree( RPC_BINDING_VECTOR** BindingVector );
337 RPCRTAPI RPC_STATUS RPC_ENTRY
338 RpcStringBindingComposeA( RPC_CSTR ObjUuid, RPC_CSTR Protseq, RPC_CSTR NetworkAddr,
339 RPC_CSTR Endpoint, RPC_CSTR Options, RPC_CSTR *StringBinding );
340 RPCRTAPI RPC_STATUS RPC_ENTRY
341 RpcStringBindingComposeW( RPC_WSTR ObjUuid, RPC_WSTR Protseq, RPC_WSTR NetworkAddr,
342 RPC_WSTR Endpoint, RPC_WSTR Options, RPC_WSTR *StringBinding );
343 #define RpcStringBindingCompose WINELIB_NAME_AW(RpcStringBindingCompose)
345 RPCRTAPI RPC_STATUS RPC_ENTRY
346 RpcStringBindingParseA( RPC_CSTR StringBinding, RPC_CSTR *ObjUuid, RPC_CSTR *Protseq,
347 RPC_CSTR *NetworkAddr, RPC_CSTR *Endpoint, RPC_CSTR *NetworkOptions );
348 RPCRTAPI RPC_STATUS RPC_ENTRY
349 RpcStringBindingParseW( RPC_WSTR StringBinding, RPC_WSTR *ObjUuid, RPC_WSTR *Protseq,
350 RPC_WSTR *NetworkAddr, RPC_WSTR *Endpoint, RPC_WSTR *NetworkOptions );
351 #define RpcStringBindingParse WINELIB_NAME_AW(RpcStringBindingParse)
353 RPCRTAPI RPC_STATUS RPC_ENTRY
354 RpcEpResolveBinding( RPC_BINDING_HANDLE Binding, RPC_IF_HANDLE IfSpec );
356 RPCRTAPI RPC_STATUS RPC_ENTRY
357 RpcEpRegisterA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
358 UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
359 RPCRTAPI RPC_STATUS RPC_ENTRY
360 RpcEpRegisterW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
361 UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
362 #define RpcEpRegister WINELIB_NAME_AW(RpcEpRegister)
364 RPCRTAPI RPC_STATUS RPC_ENTRY
365 RpcEpRegisterNoReplaceA( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
366 UUID_VECTOR* UuidVector, RPC_CSTR Annotation );
367 RPCRTAPI RPC_STATUS RPC_ENTRY
368 RpcEpRegisterNoReplaceW( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
369 UUID_VECTOR* UuidVector, RPC_WSTR Annotation );
370 #define RpcEpRegisterNoReplace WINELIB_NAME_AW(RpcEpRegisterNoReplace)
372 RPCRTAPI RPC_STATUS RPC_ENTRY
373 RpcEpUnregister( RPC_IF_HANDLE IfSpec, RPC_BINDING_VECTOR* BindingVector,
374 UUID_VECTOR* UuidVector );
376 RPCRTAPI RPC_STATUS RPC_ENTRY
377 RpcServerInqBindings( RPC_BINDING_VECTOR** BindingVector );
379 RPCRTAPI RPC_STATUS RPC_ENTRY
380 RpcServerListen( unsigned int MinimumCallThreads, unsigned int MaxCalls, unsigned int DontWait );
382 RPCRTAPI RPC_STATUS RPC_ENTRY
383 RpcMgmtEnableIdleCleanup( void );
385 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetCancelTimeout(LONG);
387 RPCRTAPI RPC_STATUS RPC_ENTRY
388 RpcMgmtWaitServerListen( void );
390 RPCRTAPI RPC_STATUS RPC_ENTRY
391 RpcMgmtStopServerListening( RPC_BINDING_HANDLE Binding );
393 RPCRTAPI RPC_STATUS RPC_ENTRY
394 RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
396 RPCRTAPI RPC_STATUS RPC_ENTRY
397 RpcMgmtInqIfIds( RPC_BINDING_HANDLE Binding, RPC_IF_ID_VECTOR** IfIdVector );
399 RPCRTAPI RPC_STATUS RPC_ENTRY
400 RpcMgmtEpEltInqBegin( RPC_BINDING_HANDLE EpBinding, ULONG InquiryType, RPC_IF_ID *IfId,
401 ULONG VersOption, UUID *ObjectUuid, RPC_EP_INQ_HANDLE *InquiryContext);
403 RPCRTAPI RPC_STATUS RPC_ENTRY
404 RpcMgmtSetComTimeout( RPC_BINDING_HANDLE Binding, unsigned int Timeout );
406 RPCRTAPI RPC_STATUS RPC_ENTRY
407 RpcMgmtSetServerStackSize( ULONG ThreadStackSize );
409 RPCRTAPI RPC_STATUS RPC_ENTRY
410 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
412 RPCRTAPI RPC_STATUS RPC_ENTRY
413 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
414 unsigned int Flags, unsigned int MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
416 RPCRTAPI RPC_STATUS RPC_ENTRY
417 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
418 unsigned int Flags, unsigned int MaxCalls, unsigned int MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
420 RPCRTAPI RPC_STATUS RPC_ENTRY
421 RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, unsigned int WaitForCallsToComplete );
423 RPCRTAPI RPC_STATUS RPC_ENTRY
424 RpcServerUnregisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, int RundownContextHandles );
427 RPCRTAPI RPC_STATUS RPC_ENTRY
428 RpcServerUseProtseqA(RPC_CSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
429 RPCRTAPI RPC_STATUS RPC_ENTRY
430 RpcServerUseProtseqW(RPC_WSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
431 #define RpcServerUseProtseq WINELIB_NAME_AW(RpcServerUseProtseq)
433 RPCRTAPI RPC_STATUS RPC_ENTRY
434 RpcServerUseProtseqEpA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor );
435 RPCRTAPI RPC_STATUS RPC_ENTRY
436 RpcServerUseProtseqEpW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor );
437 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
439 RPCRTAPI RPC_STATUS RPC_ENTRY
440 RpcServerUseProtseqEpExA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor,
441 PRPC_POLICY Policy );
442 RPCRTAPI RPC_STATUS RPC_ENTRY
443 RpcServerUseProtseqEpExW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor,
444 PRPC_POLICY Policy );
445 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
447 RPCRTAPI RPC_STATUS RPC_ENTRY
448 RpcServerRegisterAuthInfoA( RPC_CSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
450 RPCRTAPI RPC_STATUS RPC_ENTRY
451 RpcServerRegisterAuthInfoW( RPC_WSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
453 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
455 RPCRTAPI RPC_STATUS RPC_ENTRY
456 RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
457 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
458 RPC_SECURITY_QOS *SecurityQos );
460 RPCRTAPI RPC_STATUS RPC_ENTRY
461 RpcBindingSetAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
462 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
463 RPC_SECURITY_QOS *SecurityQos );
464 #define RpcBindingSetAuthInfoEx WINELIB_NAME_AW(RpcBindingSetAuthInfoEx)
466 RPCRTAPI RPC_STATUS RPC_ENTRY
467 RpcBindingSetAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
468 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
470 RPCRTAPI RPC_STATUS RPC_ENTRY
471 RpcBindingSetAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
472 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
473 #define RpcBindingSetAuthInfo WINELIB_NAME_AW(RpcBindingSetAuthInfo)
475 RPCRTAPI RPC_STATUS RPC_ENTRY
476 RpcBindingInqAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
477 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
478 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
480 RPCRTAPI RPC_STATUS RPC_ENTRY
481 RpcBindingInqAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
482 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
483 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
484 #define RpcBindingInqAuthInfoEx WINELIB_NAME_AW(RpcBindingInqAuthInfoEx)
486 RPCRTAPI RPC_STATUS RPC_ENTRY
487 RpcBindingInqAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
488 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
490 RPCRTAPI RPC_STATUS RPC_ENTRY
491 RpcBindingInqAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
492 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
493 #define RpcBindingInqAuthInfo WINELIB_NAME_AW(RpcBindingInqAuthInfo)
495 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThread(void*);
496 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThreadEx(void*,LONG);
498 RPCRTAPI RPC_STATUS RPC_ENTRY
499 RpcImpersonateClient( RPC_BINDING_HANDLE Binding );
501 RPCRTAPI RPC_STATUS RPC_ENTRY
502 RpcNetworkIsProtseqValidA( RPC_CSTR protseq );
503 RPCRTAPI RPC_STATUS RPC_ENTRY
504 RpcNetworkIsProtseqValidW( RPC_WSTR protseq );
505 #define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
507 RPCRTAPI RPC_STATUS RPC_ENTRY
508 RpcRevertToSelf( void );
509 RPCRTAPI RPC_STATUS RPC_ENTRY
510 RpcRevertToSelfEx( RPC_BINDING_HANDLE Binding );
512 RPCRTAPI RPC_STATUS RPC_ENTRY
513 RpcStringFreeA(RPC_CSTR* String);
514 RPCRTAPI RPC_STATUS RPC_ENTRY
515 RpcStringFreeW(RPC_WSTR* String);
516 #define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
518 RPCRTAPI RPC_STATUS RPC_ENTRY
519 UuidToStringA( UUID* Uuid, RPC_CSTR* StringUuid );
520 RPCRTAPI RPC_STATUS RPC_ENTRY
521 UuidToStringW( UUID* Uuid, RPC_WSTR* StringUuid );
522 #define UuidToString WINELIB_NAME_AW(UuidToString)
524 RPCRTAPI RPC_STATUS RPC_ENTRY
525 UuidFromStringA( RPC_CSTR StringUuid, UUID* Uuid );
526 RPCRTAPI RPC_STATUS RPC_ENTRY
527 UuidFromStringW( RPC_WSTR StringUuid, UUID* Uuid );
528 #define UuidFromString WINELIB_NAME_AW(UuidFromString)
530 RPCRTAPI RPC_STATUS RPC_ENTRY
531 UuidCreate( UUID* Uuid );
532 RPCRTAPI RPC_STATUS RPC_ENTRY
533 UuidCreateSequential( UUID* Uuid );
534 RPCRTAPI RPC_STATUS RPC_ENTRY
535 UuidCreateNil( UUID* Uuid );
536 RPCRTAPI signed int RPC_ENTRY
537 UuidCompare( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
538 RPCRTAPI int RPC_ENTRY
539 UuidEqual( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
540 RPCRTAPI unsigned short RPC_ENTRY
541 UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
542 RPCRTAPI int RPC_ENTRY
543 UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ );
551 #endif /*__WINE_RPCDCE_H */