kernel32: Added support for terminfo/termcap in console code.
[wine.git] / include / rpcdce.h
blob9507a82a2025cc6aaf844121c58570cb8bed2508
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 typedef int (__RPC_API *RPC_MGMT_AUTHORIZATION_FN)( RPC_BINDING_HANDLE, ULONG, RPC_STATUS * );
398 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetAuthorizationFn( RPC_MGMT_AUTHORIZATION_FN );
400 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetCancelTimeout(LONG);
402 RPCRTAPI RPC_STATUS RPC_ENTRY
403 RpcMgmtWaitServerListen( void );
405 RPCRTAPI RPC_STATUS RPC_ENTRY
406 RpcMgmtInqStats( RPC_BINDING_HANDLE Binding, RPC_STATS_VECTOR **Statistics );
408 RPCRTAPI RPC_STATUS RPC_ENTRY
409 RpcMgmtStopServerListening( RPC_BINDING_HANDLE Binding );
411 RPCRTAPI RPC_STATUS RPC_ENTRY
412 RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
414 RPCRTAPI RPC_STATUS RPC_ENTRY
415 RpcMgmtInqIfIds( RPC_BINDING_HANDLE Binding, RPC_IF_ID_VECTOR** IfIdVector );
417 RPCRTAPI RPC_STATUS RPC_ENTRY
418 RpcMgmtEpEltInqBegin( RPC_BINDING_HANDLE EpBinding, ULONG InquiryType, RPC_IF_ID *IfId,
419 ULONG VersOption, UUID *ObjectUuid, RPC_EP_INQ_HANDLE *InquiryContext);
421 RPCRTAPI RPC_STATUS RPC_ENTRY
422 RpcMgmtSetComTimeout( RPC_BINDING_HANDLE Binding, unsigned int Timeout );
424 RPCRTAPI RPC_STATUS RPC_ENTRY
425 RpcMgmtSetServerStackSize( ULONG ThreadStackSize );
427 RPCRTAPI RPC_STATUS RPC_ENTRY
428 RpcMgmtStatsVectorFree( RPC_STATS_VECTOR **StatsVector );
430 RPCRTAPI RPC_STATUS RPC_ENTRY
431 RpcServerRegisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv );
433 RPCRTAPI RPC_STATUS RPC_ENTRY
434 RpcServerRegisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
435 unsigned int Flags, unsigned int MaxCalls, RPC_IF_CALLBACK_FN* IfCallbackFn );
437 RPCRTAPI RPC_STATUS RPC_ENTRY
438 RpcServerRegisterIf2( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, RPC_MGR_EPV* MgrEpv,
439 unsigned int Flags, unsigned int MaxCalls, unsigned int MaxRpcSize, RPC_IF_CALLBACK_FN* IfCallbackFn );
441 RPCRTAPI RPC_STATUS RPC_ENTRY
442 RpcServerUnregisterIf( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, unsigned int WaitForCallsToComplete );
444 RPCRTAPI RPC_STATUS RPC_ENTRY
445 RpcServerUnregisterIfEx( RPC_IF_HANDLE IfSpec, UUID* MgrTypeUuid, int RundownContextHandles );
448 RPCRTAPI RPC_STATUS RPC_ENTRY
449 RpcServerUseProtseqA(RPC_CSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
450 RPCRTAPI RPC_STATUS RPC_ENTRY
451 RpcServerUseProtseqW(RPC_WSTR Protseq, unsigned int MaxCalls, void *SecurityDescriptor);
452 #define RpcServerUseProtseq WINELIB_NAME_AW(RpcServerUseProtseq)
454 RPCRTAPI RPC_STATUS RPC_ENTRY
455 RpcServerUseProtseqEpA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor );
456 RPCRTAPI RPC_STATUS RPC_ENTRY
457 RpcServerUseProtseqEpW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor );
458 #define RpcServerUseProtseqEp WINELIB_NAME_AW(RpcServerUseProtseqEp)
460 RPCRTAPI RPC_STATUS RPC_ENTRY
461 RpcServerUseProtseqEpExA( RPC_CSTR Protseq, unsigned int MaxCalls, RPC_CSTR Endpoint, void *SecurityDescriptor,
462 PRPC_POLICY Policy );
463 RPCRTAPI RPC_STATUS RPC_ENTRY
464 RpcServerUseProtseqEpExW( RPC_WSTR Protseq, unsigned int MaxCalls, RPC_WSTR Endpoint, void *SecurityDescriptor,
465 PRPC_POLICY Policy );
466 #define RpcServerUseProtseqEpEx WINELIB_NAME_AW(RpcServerUseProtseqEpEx)
468 RPCRTAPI RPC_STATUS RPC_ENTRY
469 RpcServerRegisterAuthInfoA( RPC_CSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
470 void *Arg );
471 RPCRTAPI RPC_STATUS RPC_ENTRY
472 RpcServerRegisterAuthInfoW( RPC_WSTR ServerPrincName, ULONG AuthnSvc, RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,
473 void *Arg );
474 #define RpcServerRegisterAuthInfo WINELIB_NAME_AW(RpcServerRegisterAuthInfo)
476 RPCRTAPI RPC_STATUS RPC_ENTRY
477 RpcBindingSetAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
478 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
479 RPC_SECURITY_QOS *SecurityQos );
481 RPCRTAPI RPC_STATUS RPC_ENTRY
482 RpcBindingSetAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
483 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr,
484 RPC_SECURITY_QOS *SecurityQos );
485 #define RpcBindingSetAuthInfoEx WINELIB_NAME_AW(RpcBindingSetAuthInfoEx)
487 RPCRTAPI RPC_STATUS RPC_ENTRY
488 RpcBindingSetAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR ServerPrincName, ULONG AuthnLevel,
489 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
491 RPCRTAPI RPC_STATUS RPC_ENTRY
492 RpcBindingSetAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR ServerPrincName, ULONG AuthnLevel,
493 ULONG AuthnSvc, RPC_AUTH_IDENTITY_HANDLE AuthIdentity, ULONG AuthzSvr );
494 #define RpcBindingSetAuthInfo WINELIB_NAME_AW(RpcBindingSetAuthInfo)
496 RPCRTAPI RPC_STATUS RPC_ENTRY
497 RpcBindingInqAuthInfoExA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
498 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
499 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
501 RPCRTAPI RPC_STATUS RPC_ENTRY
502 RpcBindingInqAuthInfoExW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
503 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc,
504 ULONG RpcQosVersion, RPC_SECURITY_QOS *SecurityQOS );
505 #define RpcBindingInqAuthInfoEx WINELIB_NAME_AW(RpcBindingInqAuthInfoEx)
507 RPCRTAPI RPC_STATUS RPC_ENTRY
508 RpcBindingInqAuthInfoA( RPC_BINDING_HANDLE Binding, RPC_CSTR * ServerPrincName, ULONG *AuthnLevel,
509 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
511 RPCRTAPI RPC_STATUS RPC_ENTRY
512 RpcBindingInqAuthInfoW( RPC_BINDING_HANDLE Binding, RPC_WSTR *ServerPrincName, ULONG *AuthnLevel,
513 ULONG *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, ULONG *AuthzSvc );
514 #define RpcBindingInqAuthInfo WINELIB_NAME_AW(RpcBindingInqAuthInfo)
516 RPCRTAPI RPC_STATUS RPC_ENTRY
517 RpcBindingInqAuthClientA( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
518 RPC_CSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
519 ULONG *AuthzSvc );
521 RPCRTAPI RPC_STATUS RPC_ENTRY
522 RpcBindingInqAuthClientW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
523 RPC_WSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
524 ULONG *AuthzSvc );
525 #define RpcBindingInqAuthClient WINELIB_NAME_AW(RpcBindingInqAuthClient)
527 RPCRTAPI RPC_STATUS RPC_ENTRY
528 RpcBindingInqAuthClientExA( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
529 RPC_CSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
530 ULONG *AuthzSvc, ULONG Flags );
532 RPCRTAPI RPC_STATUS RPC_ENTRY
533 RpcBindingInqAuthClientExW( RPC_BINDING_HANDLE ClientBinding, RPC_AUTHZ_HANDLE *Privs,
534 RPC_WSTR *ServerPrincName, ULONG *AuthnLevel, ULONG *AuthnSvc,
535 ULONG *AuthzSvc, ULONG Flags );
536 #define RpcBindingInqAuthClientEx WINELIB_NAME_AW(RpcBindingInqAuthClientEx)
538 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThread(void*);
539 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThreadEx(void*,LONG);
541 RPCRTAPI RPC_STATUS RPC_ENTRY
542 RpcImpersonateClient( RPC_BINDING_HANDLE Binding );
544 RPCRTAPI RPC_STATUS RPC_ENTRY
545 RpcNetworkIsProtseqValidA( RPC_CSTR protseq );
546 RPCRTAPI RPC_STATUS RPC_ENTRY
547 RpcNetworkIsProtseqValidW( RPC_WSTR protseq );
548 #define RpcNetworkIsProtseqValid WINELIB_NAME_AW(RpcNetworkIsProtseqValid)
550 RPCRTAPI RPC_STATUS RPC_ENTRY
551 RpcRevertToSelf( void );
552 RPCRTAPI RPC_STATUS RPC_ENTRY
553 RpcRevertToSelfEx( RPC_BINDING_HANDLE Binding );
555 RPCRTAPI RPC_STATUS RPC_ENTRY
556 RpcStringFreeA(RPC_CSTR* String);
557 RPCRTAPI RPC_STATUS RPC_ENTRY
558 RpcStringFreeW(RPC_WSTR* String);
559 #define RpcStringFree WINELIB_NAME_AW(RpcStringFree)
561 RPCRTAPI RPC_STATUS RPC_ENTRY
562 UuidToStringA( UUID* Uuid, RPC_CSTR* StringUuid );
563 RPCRTAPI RPC_STATUS RPC_ENTRY
564 UuidToStringW( UUID* Uuid, RPC_WSTR* StringUuid );
565 #define UuidToString WINELIB_NAME_AW(UuidToString)
567 RPCRTAPI RPC_STATUS RPC_ENTRY
568 UuidFromStringA( RPC_CSTR StringUuid, UUID* Uuid );
569 RPCRTAPI RPC_STATUS RPC_ENTRY
570 UuidFromStringW( RPC_WSTR StringUuid, UUID* Uuid );
571 #define UuidFromString WINELIB_NAME_AW(UuidFromString)
573 RPCRTAPI RPC_STATUS RPC_ENTRY
574 UuidCreate( UUID* Uuid );
575 RPCRTAPI RPC_STATUS RPC_ENTRY
576 UuidCreateSequential( UUID* Uuid );
577 RPCRTAPI RPC_STATUS RPC_ENTRY
578 UuidCreateNil( UUID* Uuid );
579 RPCRTAPI signed int RPC_ENTRY
580 UuidCompare( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
581 RPCRTAPI int RPC_ENTRY
582 UuidEqual( UUID* Uuid1, UUID* Uuid2, RPC_STATUS* Status_ );
583 RPCRTAPI unsigned short RPC_ENTRY
584 UuidHash(UUID* Uuid, RPC_STATUS* Status_ );
585 RPCRTAPI int RPC_ENTRY
586 UuidIsNil( UUID* Uuid, RPC_STATUS* Status_ );
588 #ifdef __cplusplus
590 #endif
592 #include <rpcdcep.h>
594 #endif /*__WINE_RPCDCE_H */