source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/rpcdce.h@ 1167

Last change on this file since 1167 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 31.2 KB
RevLine 
[1166]1/**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6#ifndef __RPCDCE_H__
7#define __RPCDCE_H__
8
9#include <_mingw_unicode.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifndef _NO_W32_PSEUDO_MODIFIERS
16#ifndef IN
17#define IN
18#endif
19#ifndef OUT
20#define OUT
21#endif
22#ifndef OPTIONAL
23#define OPTIONAL
24#endif
25#endif
26
27#ifndef DECLSPEC_NORETURN
28#define DECLSPEC_NORETURN __declspec(noreturn)
29#endif
30
31#include <specstrings.h>
32
33 typedef unsigned char *RPC_CSTR;
34 typedef unsigned short *RPC_WSTR;
35 typedef I_RPC_HANDLE RPC_BINDING_HANDLE;
36 typedef RPC_BINDING_HANDLE handle_t;
37
38#define rpc_binding_handle_t RPC_BINDING_HANDLE
39
40#include <guiddef.h>
41
42#ifndef UUID_DEFINED
43#define UUID_DEFINED
44 typedef GUID UUID;
45#ifndef uuid_t
46#define uuid_t UUID
47#endif
48#endif
49
50 typedef struct _RPC_BINDING_VECTOR {
51 unsigned __LONG32 Count;
52 RPC_BINDING_HANDLE BindingH[1];
53 } RPC_BINDING_VECTOR;
54#ifndef rpc_binding_vector_t
55#define rpc_binding_vector_t RPC_BINDING_VECTOR
56#endif
57
58 typedef struct _UUID_VECTOR {
59 unsigned __LONG32 Count;
60 UUID *Uuid[1];
61 } UUID_VECTOR;
62#ifndef uuid_vector_t
63#define uuid_vector_t UUID_VECTOR
64#endif
65
66 typedef void *RPC_IF_HANDLE;
67
68#ifndef IFID_DEFINED
69#define IFID_DEFINED
70 typedef struct _RPC_IF_ID {
71 UUID Uuid;
72 unsigned short VersMajor;
73 unsigned short VersMinor;
74 } RPC_IF_ID;
75#endif
76
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
81
82#define RPC_C_CANCEL_INFINITE_TIMEOUT -1
83
84#define RPC_C_LISTEN_MAX_CALLS_DEFAULT 1234
85#define RPC_C_PROTSEQ_MAX_REQS_DEFAULT 10
86
87#define RPC_C_BIND_TO_ALL_NICS 1
88#define RPC_C_USE_INTERNET_PORT 0x1
89#define RPC_C_USE_INTRANET_PORT 0x2
90#define RPC_C_DONT_FAIL 0x4
91
92#define RPC_C_MQ_TEMPORARY 0x0000
93#define RPC_C_MQ_PERMANENT 0x0001
94#define RPC_C_MQ_CLEAR_ON_OPEN 0x0002
95#define RPC_C_MQ_USE_EXISTING_SECURITY 0x0004
96#define RPC_C_MQ_AUTHN_LEVEL_NONE 0x0000
97#define RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY 0x0008
98#define RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY 0x0010
99
100#define RPC_C_OPT_MQ_DELIVERY 1
101#define RPC_C_OPT_MQ_PRIORITY 2
102#define RPC_C_OPT_MQ_JOURNAL 3
103#define RPC_C_OPT_MQ_ACKNOWLEDGE 4
104#define RPC_C_OPT_MQ_AUTHN_SERVICE 5
105#define RPC_C_OPT_MQ_AUTHN_LEVEL 6
106#define RPC_C_OPT_MQ_TIME_TO_REACH_QUEUE 7
107#define RPC_C_OPT_MQ_TIME_TO_BE_RECEIVED 8
108#define RPC_C_OPT_BINDING_NONCAUSAL 9
109#define RPC_C_OPT_SECURITY_CALLBACK 10
110#define RPC_C_OPT_UNIQUE_BINDING 11
111#define RPC_C_OPT_CALL_TIMEOUT 12
112#define RPC_C_OPT_DONT_LINGER 13
113#define RPC_C_OPT_MAX_OPTIONS 14
114
115#define RPC_C_MQ_EXPRESS 0
116#define RPC_C_MQ_RECOVERABLE 1
117
118#define RPC_C_MQ_JOURNAL_NONE 0
119#define RPC_C_MQ_JOURNAL_DEADLETTER 1
120#define RPC_C_MQ_JOURNAL_ALWAYS 2
121
122#define RPC_C_FULL_CERT_CHAIN 0x0001
123
124 typedef struct _RPC_PROTSEQ_VECTORA {
125 unsigned int Count;
126 unsigned char *Protseq[1];
127 } RPC_PROTSEQ_VECTORA;
128
129 typedef struct _RPC_PROTSEQ_VECTORW {
130 unsigned int Count;
131 unsigned short *Protseq[1];
132 } RPC_PROTSEQ_VECTORW;
133
134#define RPC_PROTSEQ_VECTOR __MINGW_NAME_AW(RPC_PROTSEQ_VECTOR)
135
136 typedef struct _RPC_POLICY {
137 unsigned int Length;
138 unsigned __LONG32 EndpointFlags;
139 unsigned __LONG32 NICFlags;
140 } RPC_POLICY,*PRPC_POLICY;
141
142 typedef void __RPC_API RPC_OBJECT_INQ_FN(UUID *ObjectUuid,UUID *TypeUuid,RPC_STATUS *Status);
143 typedef RPC_STATUS RPC_ENTRY RPC_IF_CALLBACK_FN(RPC_IF_HANDLE InterfaceUuid,void *Context);
144 typedef void RPC_ENTRY RPC_SECURITY_CALLBACK_FN(void *Context);
145
146#define RPC_MGR_EPV void
147
148 typedef struct {
149 unsigned int Count;
150 unsigned __LONG32 Stats[1];
151 } RPC_STATS_VECTOR;
152
153#define RPC_C_STATS_CALLS_IN 0
154#define RPC_C_STATS_CALLS_OUT 1
155#define RPC_C_STATS_PKTS_IN 2
156#define RPC_C_STATS_PKTS_OUT 3
157
158 typedef struct {
159 unsigned __LONG32 Count;
160 RPC_IF_ID *IfId[1];
161 } RPC_IF_ID_VECTOR;
162
163#define RpcBindingFromStringBinding __MINGW_NAME_AW(RpcBindingFromStringBinding)
164#define RpcBindingToStringBinding __MINGW_NAME_AW(RpcBindingToStringBinding)
165#define RpcStringBindingCompose __MINGW_NAME_AW(RpcStringBindingCompose)
166#define RpcStringBindingParse __MINGW_NAME_AW(RpcStringBindingParse)
167#define RpcStringFree __MINGW_NAME_AW(RpcStringFree)
168#define RpcNetworkIsProtseqValid __MINGW_NAME_AW(RpcNetworkIsProtseqValid)
169#define RpcNetworkInqProtseqs __MINGW_NAME_AW(RpcNetworkInqProtseqs)
170#define RpcProtseqVectorFree __MINGW_NAME_AW(RpcProtseqVectorFree)
171#define RpcServerUseProtseq __MINGW_NAME_AW(RpcServerUseProtseq)
172#define RpcServerUseProtseqEx __MINGW_NAME_AW(RpcServerUseProtseqEx)
173#define RpcServerUseProtseqEp __MINGW_NAME_AW(RpcServerUseProtseqEp)
174#define RpcServerUseProtseqEpEx __MINGW_NAME_AW(RpcServerUseProtseqEpEx)
175#define RpcServerUseProtseqIf __MINGW_NAME_AW(RpcServerUseProtseqIf)
176#define RpcServerUseProtseqIfEx __MINGW_NAME_AW(RpcServerUseProtseqIfEx)
177#define RpcMgmtInqServerPrincName __MINGW_NAME_AW(RpcMgmtInqServerPrincName)
178#define RpcServerInqDefaultPrincName __MINGW_NAME_AW(RpcServerInqDefaultPrincName)
179#define RpcNsBindingInqEntryName __MINGW_NAME_AW(RpcNsBindingInqEntryName)
180
181 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingCopy(RPC_BINDING_HANDLE SourceBinding,RPC_BINDING_HANDLE *DestinationBinding);
182 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingFree(RPC_BINDING_HANDLE *Binding);
183 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingSetOption(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 option,ULONG_PTR optionValue);
184 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqOption(RPC_BINDING_HANDLE hBinding,unsigned __LONG32 option,ULONG_PTR *pOptionValue);
185 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingFromStringBindingA(RPC_CSTR StringBinding,RPC_BINDING_HANDLE *Binding);
186 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingFromStringBindingW(RPC_WSTR StringBinding,RPC_BINDING_HANDLE *Binding);
187 RPCRTAPI RPC_STATUS RPC_ENTRY RpcSsGetContextBinding(void *ContextHandle,RPC_BINDING_HANDLE *Binding);
188 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqObject(RPC_BINDING_HANDLE Binding,UUID *ObjectUuid);
189 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingReset(RPC_BINDING_HANDLE Binding);
190 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingSetObject(RPC_BINDING_HANDLE Binding,UUID *ObjectUuid);
191 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtInqDefaultProtectLevel(unsigned __LONG32 AuthnSvc,unsigned __LONG32 *AuthnLevel);
192 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingToStringBindingA(RPC_BINDING_HANDLE Binding,RPC_CSTR *StringBinding);
193 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingToStringBindingW(RPC_BINDING_HANDLE Binding,RPC_WSTR *StringBinding);
194 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingVectorFree(RPC_BINDING_VECTOR **BindingVector);
195 RPCRTAPI RPC_STATUS RPC_ENTRY RpcStringBindingComposeA(RPC_CSTR ObjUuid,RPC_CSTR Protseq,RPC_CSTR NetworkAddr,RPC_CSTR Endpoint,RPC_CSTR Options,RPC_CSTR *StringBinding);
196 RPCRTAPI RPC_STATUS RPC_ENTRY RpcStringBindingComposeW(RPC_WSTR ObjUuid,RPC_WSTR Protseq,RPC_WSTR NetworkAddr,RPC_WSTR Endpoint,RPC_WSTR Options,RPC_WSTR *StringBinding);
197 RPCRTAPI RPC_STATUS RPC_ENTRY RpcStringBindingParseA(RPC_CSTR StringBinding,RPC_CSTR *ObjUuid,RPC_CSTR *Protseq,RPC_CSTR *NetworkAddr,RPC_CSTR *Endpoint,RPC_CSTR *NetworkOptions);
198 RPCRTAPI RPC_STATUS RPC_ENTRY RpcStringBindingParseW(RPC_WSTR StringBinding,RPC_WSTR *ObjUuid,RPC_WSTR *Protseq,RPC_WSTR *NetworkAddr,RPC_WSTR *Endpoint,RPC_WSTR *NetworkOptions);
199 RPCRTAPI RPC_STATUS RPC_ENTRY RpcStringFreeA(RPC_CSTR *String);
200 RPCRTAPI RPC_STATUS RPC_ENTRY RpcStringFreeW(RPC_WSTR *String);
201 RPCRTAPI RPC_STATUS RPC_ENTRY RpcIfInqId(RPC_IF_HANDLE RpcIfHandle,RPC_IF_ID *RpcIfId);
202 RPCRTAPI RPC_STATUS RPC_ENTRY RpcNetworkIsProtseqValidA(RPC_CSTR Protseq);
203 RPCRTAPI RPC_STATUS RPC_ENTRY RpcNetworkIsProtseqValidW(RPC_WSTR Protseq);
204 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtInqComTimeout(RPC_BINDING_HANDLE Binding,unsigned int *Timeout);
205 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetComTimeout(RPC_BINDING_HANDLE Binding,unsigned int Timeout);
206 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetCancelTimeout(__LONG32 Timeout);
207 RPCRTAPI RPC_STATUS RPC_ENTRY RpcNetworkInqProtseqsA (RPC_PROTSEQ_VECTORA **ProtseqVector);
208 RPCRTAPI RPC_STATUS RPC_ENTRY RpcNetworkInqProtseqsW (RPC_PROTSEQ_VECTORW **ProtseqVector);
209 RPCRTAPI RPC_STATUS RPC_ENTRY RpcObjectInqType(UUID *ObjUuid,UUID *TypeUuid);
210 RPCRTAPI RPC_STATUS RPC_ENTRY RpcObjectSetInqFn(RPC_OBJECT_INQ_FN *InquiryFn);
211 RPCRTAPI RPC_STATUS RPC_ENTRY RpcObjectSetType(UUID *ObjUuid,UUID *TypeUuid);
212 RPCRTAPI RPC_STATUS RPC_ENTRY RpcProtseqVectorFreeA(RPC_PROTSEQ_VECTORA **ProtseqVector);
213 RPCRTAPI RPC_STATUS RPC_ENTRY RpcProtseqVectorFreeW(RPC_PROTSEQ_VECTORW **ProtseqVector);
214 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerInqBindings (RPC_BINDING_VECTOR **BindingVector);
215 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerInqIf(RPC_IF_HANDLE IfSpec,UUID *MgrTypeUuid,RPC_MGR_EPV **MgrEpv);
216 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerListen(unsigned int MinimumCallThreads,unsigned int MaxCalls,unsigned int DontWait);
217 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerRegisterIf(RPC_IF_HANDLE IfSpec,UUID *MgrTypeUuid,RPC_MGR_EPV *MgrEpv);
218 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerRegisterIfEx(RPC_IF_HANDLE IfSpec,UUID *MgrTypeUuid,RPC_MGR_EPV *MgrEpv,unsigned int Flags,unsigned int MaxCalls,RPC_IF_CALLBACK_FN *IfCallback);
219 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerRegisterIf2(RPC_IF_HANDLE IfSpec,UUID *MgrTypeUuid,RPC_MGR_EPV *MgrEpv,unsigned int Flags,unsigned int MaxCalls,unsigned int MaxRpcSize,RPC_IF_CALLBACK_FN *IfCallbackFn);
220 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUnregisterIf(RPC_IF_HANDLE IfSpec,UUID *MgrTypeUuid,unsigned int WaitForCallsToComplete);
221 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUnregisterIfEx(RPC_IF_HANDLE IfSpec,UUID *MgrTypeUuid,int RundownContextHandles);
222 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseAllProtseqs(unsigned int MaxCalls,void *SecurityDescriptor);
223 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseAllProtseqsEx(unsigned int MaxCalls,void *SecurityDescriptor,PRPC_POLICY Policy);
224 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseAllProtseqsIf(unsigned int MaxCalls,RPC_IF_HANDLE IfSpec,void *SecurityDescriptor);
225 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseAllProtseqsIfEx(unsigned int MaxCalls,RPC_IF_HANDLE IfSpec,void *SecurityDescriptor,PRPC_POLICY Policy);
226 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqA(RPC_CSTR Protseq,unsigned int MaxCalls,void *SecurityDescriptor);
227 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqExA(RPC_CSTR Protseq,unsigned int MaxCalls,void *SecurityDescriptor,PRPC_POLICY Policy);
228 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqW(RPC_WSTR Protseq,unsigned int MaxCalls,void *SecurityDescriptor);
229 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqExW(RPC_WSTR Protseq,unsigned int MaxCalls,void *SecurityDescriptor,PRPC_POLICY Policy);
230 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqEpA(RPC_CSTR Protseq,unsigned int MaxCalls,RPC_CSTR Endpoint,void *SecurityDescriptor);
231 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqEpExA(RPC_CSTR Protseq,unsigned int MaxCalls,RPC_CSTR Endpoint,void *SecurityDescriptor,PRPC_POLICY Policy);
232 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqEpW(RPC_WSTR Protseq,unsigned int MaxCalls,RPC_WSTR Endpoint,void *SecurityDescriptor);
233 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqEpExW(RPC_WSTR Protseq,unsigned int MaxCalls,RPC_WSTR Endpoint,void *SecurityDescriptor,PRPC_POLICY Policy);
234 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqIfA(RPC_CSTR Protseq,unsigned int MaxCalls,RPC_IF_HANDLE IfSpec,void *SecurityDescriptor);
235 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqIfExA(RPC_CSTR Protseq,unsigned int MaxCalls,RPC_IF_HANDLE IfSpec,void *SecurityDescriptor,PRPC_POLICY Policy);
236 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqIfW(RPC_WSTR Protseq,unsigned int MaxCalls,RPC_IF_HANDLE IfSpec,void *SecurityDescriptor);
237 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerUseProtseqIfExW(RPC_WSTR Protseq,unsigned int MaxCalls,RPC_IF_HANDLE IfSpec,void *SecurityDescriptor,PRPC_POLICY Policy);
238 RPCRTAPI void RPC_ENTRY RpcServerYield (void);
239 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtStatsVectorFree(RPC_STATS_VECTOR **StatsVector);
240 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtInqStats(RPC_BINDING_HANDLE Binding,RPC_STATS_VECTOR **Statistics);
241 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtIsServerListening(RPC_BINDING_HANDLE Binding);
242 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtStopServerListening(RPC_BINDING_HANDLE Binding);
243 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtWaitServerListen(void);
244 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetServerStackSize(unsigned __LONG32 ThreadStackSize);
245 RPCRTAPI void RPC_ENTRY RpcSsDontSerializeContext(void);
246 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtEnableIdleCleanup(void);
247 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtInqIfIds(RPC_BINDING_HANDLE Binding,RPC_IF_ID_VECTOR **IfIdVector);
248 RPCRTAPI RPC_STATUS RPC_ENTRY RpcIfIdVectorFree(RPC_IF_ID_VECTOR **IfIdVector);
249 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtInqServerPrincNameA(RPC_BINDING_HANDLE Binding,unsigned __LONG32 AuthnSvc,RPC_CSTR *ServerPrincName);
250 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtInqServerPrincNameW(RPC_BINDING_HANDLE Binding,unsigned __LONG32 AuthnSvc,RPC_WSTR *ServerPrincName);
251 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerInqDefaultPrincNameA(unsigned __LONG32 AuthnSvc,RPC_CSTR *PrincName);
252 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerInqDefaultPrincNameW(unsigned __LONG32 AuthnSvc,RPC_WSTR *PrincName);
253 RPCRTAPI RPC_STATUS RPC_ENTRY RpcEpResolveBinding(RPC_BINDING_HANDLE Binding,RPC_IF_HANDLE IfSpec);
254 RPCRTAPI RPC_STATUS RPC_ENTRY RpcNsBindingInqEntryNameA(RPC_BINDING_HANDLE Binding,unsigned __LONG32 EntryNameSyntax,RPC_CSTR *EntryName);
255 RPCRTAPI RPC_STATUS RPC_ENTRY RpcNsBindingInqEntryNameW(RPC_BINDING_HANDLE Binding,unsigned __LONG32 EntryNameSyntax,RPC_WSTR *EntryName);
256
257 typedef void *RPC_AUTH_IDENTITY_HANDLE;
258 typedef void *RPC_AUTHZ_HANDLE;
259
260#define RPC_C_AUTHN_LEVEL_DEFAULT 0
261#define RPC_C_AUTHN_LEVEL_NONE 1
262#define RPC_C_AUTHN_LEVEL_CONNECT 2
263#define RPC_C_AUTHN_LEVEL_CALL 3
264#define RPC_C_AUTHN_LEVEL_PKT 4
265#define RPC_C_AUTHN_LEVEL_PKT_INTEGRITY 5
266#define RPC_C_AUTHN_LEVEL_PKT_PRIVACY 6
267
268#define RPC_C_IMP_LEVEL_DEFAULT 0
269#define RPC_C_IMP_LEVEL_ANONYMOUS 1
270#define RPC_C_IMP_LEVEL_IDENTIFY 2
271#define RPC_C_IMP_LEVEL_IMPERSONATE 3
272#define RPC_C_IMP_LEVEL_DELEGATE 4
273
274#define RPC_C_QOS_IDENTITY_STATIC 0
275#define RPC_C_QOS_IDENTITY_DYNAMIC 1
276
277#define RPC_C_QOS_CAPABILITIES_DEFAULT 0x0
278#define RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH 0x1
279#define RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC 0x2
280#define RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY 0x4
281#define RPC_C_QOS_CAPABILITIES_IGNORE_DELEGATE_FAILURE 0x8
282#define RPC_C_QOS_CAPABILITIES_LOCAL_MA_HINT 0x10
283
284#define RPC_C_PROTECT_LEVEL_DEFAULT (RPC_C_AUTHN_LEVEL_DEFAULT)
285#define RPC_C_PROTECT_LEVEL_NONE (RPC_C_AUTHN_LEVEL_NONE)
286#define RPC_C_PROTECT_LEVEL_CONNECT (RPC_C_AUTHN_LEVEL_CONNECT)
287#define RPC_C_PROTECT_LEVEL_CALL (RPC_C_AUTHN_LEVEL_CALL)
288#define RPC_C_PROTECT_LEVEL_PKT (RPC_C_AUTHN_LEVEL_PKT)
289#define RPC_C_PROTECT_LEVEL_PKT_INTEGRITY (RPC_C_AUTHN_LEVEL_PKT_INTEGRITY)
290#define RPC_C_PROTECT_LEVEL_PKT_PRIVACY (RPC_C_AUTHN_LEVEL_PKT_PRIVACY)
291
292#define RPC_C_AUTHN_NONE 0
293#define RPC_C_AUTHN_DCE_PRIVATE 1
294#define RPC_C_AUTHN_DCE_PUBLIC 2
295#define RPC_C_AUTHN_DEC_PUBLIC 4
296#define RPC_C_AUTHN_GSS_NEGOTIATE 9
297#define RPC_C_AUTHN_WINNT 10
298#define RPC_C_AUTHN_GSS_SCHANNEL 14
299#define RPC_C_AUTHN_GSS_KERBEROS 16
300#define RPC_C_AUTHN_DPA 17
301#define RPC_C_AUTHN_MSN 18
302#define RPC_C_AUTHN_DIGEST 21
303#define RPC_C_AUTHN_MQ 100
304#define RPC_C_AUTHN_DEFAULT __MSABI_LONG(0xFFFFFFFF)
305
306#define RPC_C_NO_CREDENTIALS ((RPC_AUTH_IDENTITY_HANDLE) MAXUINT_PTR)
307
308#define RPC_C_SECURITY_QOS_VERSION __MSABI_LONG(1)
309#define RPC_C_SECURITY_QOS_VERSION_1 __MSABI_LONG(1)
310
311 typedef struct _RPC_SECURITY_QOS {
312 unsigned __LONG32 Version;
313 unsigned __LONG32 Capabilities;
314 unsigned __LONG32 IdentityTracking;
315 unsigned __LONG32 ImpersonationType;
316 } RPC_SECURITY_QOS,*PRPC_SECURITY_QOS;
317
318#ifndef _AUTH_IDENTITY_DEFINED
319#define _AUTH_IDENTITY_DEFINED
320
321#define SEC_WINNT_AUTH_IDENTITY_ANSI 0x1
322#define SEC_WINNT_AUTH_IDENTITY_UNICODE 0x2
323
324 typedef struct _SEC_WINNT_AUTH_IDENTITY_W {
325 unsigned short *User;
326 unsigned __LONG32 UserLength;
327 unsigned short *Domain;
328 unsigned __LONG32 DomainLength;
329 unsigned short *Password;
330 unsigned __LONG32 PasswordLength;
331 unsigned __LONG32 Flags;
332 } SEC_WINNT_AUTH_IDENTITY_W,*PSEC_WINNT_AUTH_IDENTITY_W;
333
334 typedef struct _SEC_WINNT_AUTH_IDENTITY_A {
335 unsigned char *User;
336 unsigned __LONG32 UserLength;
337 unsigned char *Domain;
338 unsigned __LONG32 DomainLength;
339 unsigned char *Password;
340 unsigned __LONG32 PasswordLength;
341 unsigned __LONG32 Flags;
342 } SEC_WINNT_AUTH_IDENTITY_A,*PSEC_WINNT_AUTH_IDENTITY_A;
343
344#define SEC_WINNT_AUTH_IDENTITY __MINGW_NAME_UAW(SEC_WINNT_AUTH_IDENTITY)
345#define PSEC_WINNT_AUTH_IDENTITY __MINGW_NAME_UAW(PSEC_WINNT_AUTH_IDENTITY)
346#define _SEC_WINNT_AUTH_IDENTITY __MINGW_NAME_UAW(_SEC_WINNT_AUTH_IDENTITY)
347
348#define RPC_C_SECURITY_QOS_VERSION_2 __MSABI_LONG(2)
349
350#define RPC_C_AUTHN_INFO_TYPE_HTTP 1
351
352#define RPC_C_HTTP_AUTHN_TARGET_SERVER 1
353#define RPC_C_HTTP_AUTHN_TARGET_PROXY 2
354
355#define RPC_C_HTTP_AUTHN_SCHEME_BASIC 0x00000001
356#define RPC_C_HTTP_AUTHN_SCHEME_NTLM 0x00000002
357#define RPC_C_HTTP_AUTHN_SCHEME_PASSPORT 0x00000004
358#define RPC_C_HTTP_AUTHN_SCHEME_DIGEST 0x00000008
359#define RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE 0x00000010
360#define RPC_C_HTTP_AUTHN_SCHEME_CERT 0x00010000
361
362#define RPC_C_HTTP_FLAG_USE_SSL 1
363#define RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME 2
364#define RPC_C_HTTP_FLAG_IGNORE_CERT_CN_INVALID 8
365
366 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_W {
367 SEC_WINNT_AUTH_IDENTITY_W *TransportCredentials;
368 unsigned __LONG32 Flags;
369 unsigned __LONG32 AuthenticationTarget;
370 unsigned __LONG32 NumberOfAuthnSchemes;
371 unsigned __LONG32 *AuthnSchemes;
372 unsigned short *ServerCertificateSubject;
373 } RPC_HTTP_TRANSPORT_CREDENTIALS_W,*PRPC_HTTP_TRANSPORT_CREDENTIALS_W;
374
375 typedef struct _RPC_HTTP_TRANSPORT_CREDENTIALS_A {
376 SEC_WINNT_AUTH_IDENTITY_A *TransportCredentials;
377 unsigned __LONG32 Flags;
378 unsigned __LONG32 AuthenticationTarget;
379 unsigned __LONG32 NumberOfAuthnSchemes;
380 unsigned __LONG32 *AuthnSchemes;
381 unsigned char *ServerCertificateSubject;
382 } RPC_HTTP_TRANSPORT_CREDENTIALS_A,*PRPC_HTTP_TRANSPORT_CREDENTIALS_A;
383
384 typedef struct _RPC_SECURITY_QOS_V2_W {
385 unsigned __LONG32 Version;
386 unsigned __LONG32 Capabilities;
387 unsigned __LONG32 IdentityTracking;
388 unsigned __LONG32 ImpersonationType;
389 unsigned __LONG32 AdditionalSecurityInfoType;
390 union {
391 RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
392 } u;
393 } RPC_SECURITY_QOS_V2_W,*PRPC_SECURITY_QOS_V2_W;
394
395 typedef struct _RPC_SECURITY_QOS_V2_A {
396 unsigned __LONG32 Version;
397 unsigned __LONG32 Capabilities;
398 unsigned __LONG32 IdentityTracking;
399 unsigned __LONG32 ImpersonationType;
400 unsigned __LONG32 AdditionalSecurityInfoType;
401 union {
402 RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
403 } u;
404 } RPC_SECURITY_QOS_V2_A,*PRPC_SECURITY_QOS_V2_A;
405
406#define RPC_C_SECURITY_QOS_VERSION_3 __MSABI_LONG(3)
407
408 typedef struct _RPC_SECURITY_QOS_V3_W {
409 unsigned __LONG32 Version;
410 unsigned __LONG32 Capabilities;
411 unsigned __LONG32 IdentityTracking;
412 unsigned __LONG32 ImpersonationType;
413 unsigned __LONG32 AdditionalSecurityInfoType;
414 union {
415 RPC_HTTP_TRANSPORT_CREDENTIALS_W *HttpCredentials;
416 } u;
417 void *Sid;
418 } RPC_SECURITY_QOS_V3_W,*PRPC_SECURITY_QOS_V3_W;
419
420 typedef struct _RPC_SECURITY_QOS_V3_A {
421 unsigned __LONG32 Version;
422 unsigned __LONG32 Capabilities;
423 unsigned __LONG32 IdentityTracking;
424 unsigned __LONG32 ImpersonationType;
425 unsigned __LONG32 AdditionalSecurityInfoType;
426 union {
427 RPC_HTTP_TRANSPORT_CREDENTIALS_A *HttpCredentials;
428 } u;
429 void *Sid;
430 } RPC_SECURITY_QOS_V3_A,*PRPC_SECURITY_QOS_V3_A;
431#endif
432
433#define RPC_SECURITY_QOS_V2 __MINGW_NAME_UAW(RPC_SECURITY_QOS_V2)
434#define PRPC_SECURITY_QOS_V2 __MINGW_NAME_UAW(PRPC_SECURITY_QOS_V2)
435#define _RPC_SECURITY_QOS_V2 __MINGW_NAME_UAW(_RPC_SECURITY_QOS_V2)
436#define RPC_HTTP_TRANSPORT_CREDENTIALS __MINGW_NAME_UAW(RPC_HTTP_TRANSPORT_CREDENTIALS)
437#define PRPC_HTTP_TRANSPORT_CREDENTIALS __MINGW_NAME_UAW(PRPC_HTTP_TRANSPORT_CREDENTIALS)
438#define _RPC_HTTP_TRANSPORT_CREDENTIALS __MINGW_NAME_UAW(_RPC_HTTP_TRANSPORT_CREDENTIALS)
439#define RPC_SECURITY_QOS_V3 __MINGW_NAME_UAW(RPC_SECURITY_QOS_V3)
440#define PRPC_SECURITY_QOS_V3 __MINGW_NAME_UAW(PRPC_SECURITY_QOS_V3)
441#define _RPC_SECURITY_QOS_V3 __MINGW_NAME_UAW(_RPC_SECURITY_QOS_V3)
442
443 typedef enum _RPC_HTTP_REDIRECTOR_STAGE {
444 RPCHTTP_RS_REDIRECT = 1,RPCHTTP_RS_ACCESS_1,RPCHTTP_RS_SESSION,RPCHTTP_RS_ACCESS_2,RPCHTTP_RS_INTERFACE
445 } RPC_HTTP_REDIRECTOR_STAGE;
446
447 typedef RPC_STATUS (__RPC_API *RPC_NEW_HTTP_PROXY_CHANNEL)(RPC_HTTP_REDIRECTOR_STAGE RedirectorStage,unsigned short *ServerName,unsigned short *ServerPort,unsigned short *RemoteUser,unsigned short *AuthType,void *ResourceUuid,void *Metadata,void *SessionId,void *Interface,void *Reserved,unsigned __LONG32 Flags,unsigned short **NewServerName,unsigned short **NewServerPort);
448 typedef void (__RPC_API *RPC_HTTP_PROXY_FREE_STRING)(unsigned short *String);
449
450#define RPC_C_AUTHZ_NONE 0
451#define RPC_C_AUTHZ_NAME 1
452#define RPC_C_AUTHZ_DCE 2
453#define RPC_C_AUTHZ_DEFAULT 0xffffffff
454
455 RPCRTAPI RPC_STATUS RPC_ENTRY RpcImpersonateClient(RPC_BINDING_HANDLE BindingHandle);
456 RPCRTAPI RPC_STATUS RPC_ENTRY RpcRevertToSelfEx(RPC_BINDING_HANDLE BindingHandle);
457 RPCRTAPI RPC_STATUS RPC_ENTRY RpcRevertToSelf(void);
458 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthClientA(RPC_BINDING_HANDLE ClientBinding,RPC_AUTHZ_HANDLE *Privs,RPC_CSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,unsigned __LONG32 *AuthzSvc);
459 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthClientW(RPC_BINDING_HANDLE ClientBinding,RPC_AUTHZ_HANDLE *Privs,RPC_WSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,unsigned __LONG32 *AuthzSvc);
460 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthClientExA(RPC_BINDING_HANDLE ClientBinding,RPC_AUTHZ_HANDLE *Privs,RPC_CSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,unsigned __LONG32 *AuthzSvc,unsigned __LONG32 Flags);
461 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthClientExW(RPC_BINDING_HANDLE ClientBinding,RPC_AUTHZ_HANDLE *Privs,RPC_WSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,unsigned __LONG32 *AuthzSvc,unsigned __LONG32 Flags);
462 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthInfoA(RPC_BINDING_HANDLE Binding,RPC_CSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,RPC_AUTH_IDENTITY_HANDLE *AuthIdentity,unsigned __LONG32 *AuthzSvc);
463 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthInfoW(RPC_BINDING_HANDLE Binding,RPC_WSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,RPC_AUTH_IDENTITY_HANDLE *AuthIdentity,unsigned __LONG32 *AuthzSvc);
464 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingSetAuthInfoA(RPC_BINDING_HANDLE Binding,RPC_CSTR ServerPrincName,unsigned __LONG32 AuthnLevel,unsigned __LONG32 AuthnSvc,RPC_AUTH_IDENTITY_HANDLE AuthIdentity,unsigned __LONG32 AuthzSvc);
465 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingSetAuthInfoExA(RPC_BINDING_HANDLE Binding,RPC_CSTR ServerPrincName,unsigned __LONG32 AuthnLevel,unsigned __LONG32 AuthnSvc,RPC_AUTH_IDENTITY_HANDLE AuthIdentity,unsigned __LONG32 AuthzSvc,RPC_SECURITY_QOS *SecurityQos);
466 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingSetAuthInfoW(RPC_BINDING_HANDLE Binding,RPC_WSTR ServerPrincName,unsigned __LONG32 AuthnLevel,unsigned __LONG32 AuthnSvc,RPC_AUTH_IDENTITY_HANDLE AuthIdentity,unsigned __LONG32 AuthzSvc);
467 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingSetAuthInfoExW(RPC_BINDING_HANDLE Binding,RPC_WSTR ServerPrincName,unsigned __LONG32 AuthnLevel,unsigned __LONG32 AuthnSvc,RPC_AUTH_IDENTITY_HANDLE AuthIdentity,unsigned __LONG32 AuthzSvc,RPC_SECURITY_QOS *SecurityQOS);
468 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthInfoExA(RPC_BINDING_HANDLE Binding,RPC_CSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,RPC_AUTH_IDENTITY_HANDLE *AuthIdentity,unsigned __LONG32 *AuthzSvc,unsigned __LONG32 RpcQosVersion,RPC_SECURITY_QOS *SecurityQOS);
469 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingInqAuthInfoExW(RPC_BINDING_HANDLE Binding,RPC_WSTR *ServerPrincName,unsigned __LONG32 *AuthnLevel,unsigned __LONG32 *AuthnSvc,RPC_AUTH_IDENTITY_HANDLE *AuthIdentity,unsigned __LONG32 *AuthzSvc,unsigned __LONG32 RpcQosVersion,RPC_SECURITY_QOS *SecurityQOS);
470
471 typedef void (__RPC_API *RPC_AUTH_KEY_RETRIEVAL_FN)(void *Arg,unsigned short *ServerPrincName,unsigned __LONG32 KeyVer,void **Key,RPC_STATUS *Status);
472
473 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerRegisterAuthInfoA(RPC_CSTR ServerPrincName,unsigned __LONG32 AuthnSvc,RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,void *Arg);
474 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerRegisterAuthInfoW(RPC_WSTR ServerPrincName,unsigned __LONG32 AuthnSvc,RPC_AUTH_KEY_RETRIEVAL_FN GetKeyFn,void *Arg);
475
476#define RpcBindingInqAuthClient __MINGW_NAME_AW(RpcBindingInqAuthClient)
477#define RpcBindingInqAuthClientEx __MINGW_NAME_AW(RpcBindingInqAuthClientEx)
478#define RpcBindingInqAuthInfo __MINGW_NAME_AW(RpcBindingInqAuthInfo)
479#define RpcBindingSetAuthInfo __MINGW_NAME_AW(RpcBindingSetAuthInfo)
480#define RpcServerRegisterAuthInfo __MINGW_NAME_AW(RpcServerRegisterAuthInfo)
481#define RpcBindingInqAuthInfoEx __MINGW_NAME_AW(RpcBindingInqAuthInfoEx)
482#define RpcBindingSetAuthInfoEx __MINGW_NAME_AW(RpcBindingSetAuthInfoEx)
483
484#ifndef __ia64__
485 typedef struct {
486 unsigned char *UserName;
487 unsigned char *ComputerName;
488 unsigned short Privilege;
489 unsigned __LONG32 AuthFlags;
490 } RPC_CLIENT_INFORMATION1,*PRPC_CLIENT_INFORMATION1;
491#endif
492
493#define UuidFromString __MINGW_NAME_AW(UuidFromString)
494#define UuidToString __MINGW_NAME_AW(UuidToString)
495#define RpcEpRegisterNoReplace __MINGW_NAME_AW(RpcEpRegisterNoReplace)
496#define RpcEpRegister __MINGW_NAME_AW(RpcEpRegister)
497#define DceErrorInqText __MINGW_NAME_AW(DceErrorInqText)
498
499#define DCE_C_ERROR_STRING_LEN 256
500
501 RPCRTAPI RPC_STATUS RPC_ENTRY RpcBindingServerFromClient(RPC_BINDING_HANDLE ClientBinding,RPC_BINDING_HANDLE *ServerBinding);
502 RPCRTAPI DECLSPEC_NORETURN void RPC_ENTRY RpcRaiseException(RPC_STATUS exception);
503 RPCRTAPI RPC_STATUS RPC_ENTRY RpcTestCancel(void);
504 RPCRTAPI RPC_STATUS RPC_ENTRY RpcServerTestCancel(RPC_BINDING_HANDLE BindingHandle);
505 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThread(void *Thread);
506 RPCRTAPI RPC_STATUS RPC_ENTRY RpcCancelThreadEx(void *Thread,__LONG32 Timeout);
507 RPCRTAPI RPC_STATUS RPC_ENTRY UuidCreate(UUID *Uuid);
508 RPCRTAPI RPC_STATUS RPC_ENTRY UuidCreateSequential(UUID *Uuid);
509 RPCRTAPI RPC_STATUS RPC_ENTRY UuidToStringA(UUID *Uuid,RPC_CSTR *StringUuid);
510 RPCRTAPI RPC_STATUS RPC_ENTRY UuidFromStringA(RPC_CSTR StringUuid,UUID *Uuid);
511 RPCRTAPI RPC_STATUS RPC_ENTRY UuidToStringW(UUID *Uuid,RPC_WSTR *StringUuid);
512 RPCRTAPI RPC_STATUS RPC_ENTRY UuidFromStringW(RPC_WSTR StringUuid,UUID *Uuid);
513 RPCRTAPI signed int RPC_ENTRY UuidCompare(UUID *Uuid1,UUID *Uuid2,RPC_STATUS *Status);
514 RPCRTAPI RPC_STATUS RPC_ENTRY UuidCreateNil(UUID *NilUuid);
515 RPCRTAPI int RPC_ENTRY UuidEqual(UUID *Uuid1,UUID *Uuid2,RPC_STATUS *Status);
516 RPCRTAPI unsigned short RPC_ENTRY UuidHash(UUID *Uuid,RPC_STATUS *Status);
517 RPCRTAPI int RPC_ENTRY UuidIsNil(UUID *Uuid,RPC_STATUS *Status);
518 RPCRTAPI RPC_STATUS RPC_ENTRY RpcEpRegisterNoReplaceA(RPC_IF_HANDLE IfSpec,RPC_BINDING_VECTOR *BindingVector,UUID_VECTOR *UuidVector,RPC_CSTR Annotation);
519 RPCRTAPI RPC_STATUS RPC_ENTRY RpcEpRegisterNoReplaceW(RPC_IF_HANDLE IfSpec,RPC_BINDING_VECTOR *BindingVector,UUID_VECTOR *UuidVector,RPC_WSTR Annotation);
520 RPCRTAPI RPC_STATUS RPC_ENTRY RpcEpRegisterA(RPC_IF_HANDLE IfSpec,RPC_BINDING_VECTOR *BindingVector,UUID_VECTOR *UuidVector,RPC_CSTR Annotation);
521 RPCRTAPI RPC_STATUS RPC_ENTRY RpcEpRegisterW(RPC_IF_HANDLE IfSpec,RPC_BINDING_VECTOR *BindingVector,UUID_VECTOR *UuidVector,RPC_WSTR Annotation);
522 RPCRTAPI RPC_STATUS RPC_ENTRY RpcEpUnregister(RPC_IF_HANDLE IfSpec,RPC_BINDING_VECTOR *BindingVector,UUID_VECTOR *UuidVector);
523 RPCRTAPI RPC_STATUS RPC_ENTRY DceErrorInqTextA(RPC_STATUS RpcStatus,RPC_CSTR ErrorText);
524 RPCRTAPI RPC_STATUS RPC_ENTRY DceErrorInqTextW(RPC_STATUS RpcStatus,RPC_WSTR ErrorText);
525
526 typedef I_RPC_HANDLE *RPC_EP_INQ_HANDLE;
527
528#define RPC_C_EP_ALL_ELTS 0
529#define RPC_C_EP_MATCH_BY_IF 1
530#define RPC_C_EP_MATCH_BY_OBJ 2
531#define RPC_C_EP_MATCH_BY_BOTH 3
532
533#define RPC_C_VERS_ALL 1
534#define RPC_C_VERS_COMPATIBLE 2
535#define RPC_C_VERS_EXACT 3
536#define RPC_C_VERS_MAJOR_ONLY 4
537#define RPC_C_VERS_UPTO 5
538
539#define RpcMgmtEpEltInqNext __MINGW_NAME_AW(RpcMgmtEpEltInqNext)
540
541 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqBegin(RPC_BINDING_HANDLE EpBinding,unsigned __LONG32 InquiryType,RPC_IF_ID *IfId,unsigned __LONG32 VersOption,UUID *ObjectUuid,RPC_EP_INQ_HANDLE *InquiryContext);
542 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqDone(RPC_EP_INQ_HANDLE *InquiryContext);
543 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqNextA(RPC_EP_INQ_HANDLE InquiryContext,RPC_IF_ID *IfId,RPC_BINDING_HANDLE *Binding,UUID *ObjectUuid,RPC_CSTR *Annotation);
544 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtEpEltInqNextW(RPC_EP_INQ_HANDLE InquiryContext,RPC_IF_ID *IfId,RPC_BINDING_HANDLE *Binding,UUID *ObjectUuid,RPC_WSTR *Annotation);
545 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtEpUnregister(RPC_BINDING_HANDLE EpBinding,RPC_IF_ID *IfId,RPC_BINDING_HANDLE Binding,UUID *ObjectUuid);
546
547 typedef int (__RPC_API *RPC_MGMT_AUTHORIZATION_FN)(RPC_BINDING_HANDLE ClientBinding,unsigned __LONG32 RequestedMgmtOperation,RPC_STATUS *Status);
548
549#define RPC_C_MGMT_INQ_IF_IDS 0
550#define RPC_C_MGMT_INQ_PRINC_NAME 1
551#define RPC_C_MGMT_INQ_STATS 2
552#define RPC_C_MGMT_IS_SERVER_LISTEN 3
553#define RPC_C_MGMT_STOP_SERVER_LISTEN 4
554
555 RPCRTAPI RPC_STATUS RPC_ENTRY RpcMgmtSetAuthorizationFn(RPC_MGMT_AUTHORIZATION_FN AuthorizationFn);
556
557#define RPC_C_PARM_MAX_PACKET_LENGTH 1
558#define RPC_C_PARM_BUFFER_LENGTH 2
559
560#define RPC_IF_AUTOLISTEN 0x0001
561#define RPC_IF_OLE 0x0002
562#define RPC_IF_ALLOW_UNKNOWN_AUTHORITY 0x0004
563#define RPC_IF_ALLOW_SECURE_ONLY 0x0008
564#define RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH 0x0010
565#define RPC_IF_ALLOW_LOCAL_ONLY 0x0020
566#define RPC_IF_SEC_NO_CACHE 0x0040
567
568#if (_WIN32_WINNT >= 0x0600)
569
570typedef struct _RPC_BINDING_HANDLE_OPTIONS_V1 {
571 unsigned __LONG32 Version;
572 unsigned __LONG32 Flags;
573 unsigned __LONG32 ComTimeout;
574 unsigned __LONG32 CallTimeout;
575} RPC_BINDING_HANDLE_OPTIONS_V1, RPC_BINDING_HANDLE_OPTIONS;
576
577typedef struct {
578 unsigned __LONG32 Version;
579 unsigned short *ServerPrincName;
580 unsigned __LONG32 AuthnLevel;
581 unsigned __LONG32 AuthnSvc;
582 SEC_WINNT_AUTH_IDENTITY *AuthIdentity;
583 RPC_SECURITY_QOS *SecurityQos;
584} RPC_BINDING_HANDLE_SECURITY_V1, RPC_BINDING_HANDLE_SECURITY;
585
586typedef struct _RPC_BINDING_HANDLE_TEMPLATE {
587 unsigned __LONG32 Version;
588 unsigned __LONG32 Flags;
589 unsigned __LONG32 ProtocolSequence;
590 unsigned short *NetworkAddress;
591 unsigned short *StringEndpoint;
592 union {
593 unsigned short *Reserved;
594 } u1;
595 UUID ObjectUuid;
596} RPC_BINDING_HANDLE_TEMPLATE_V1, RPC_BINDING_HANDLE_TEMPLATE;
597
598#define RPC_CALL_STATUS_IN_PROGRESS 0x01
599#define RPC_CALL_STATUS_CANCELLED 0x02
600#define RPC_CALL_STATUS_DISCONNECTED 0x03
601
602RPC_STATUS RPC_ENTRY RpcBindingCreateA(
603 RPC_BINDING_HANDLE_TEMPLATE *Template,
604 RPC_BINDING_HANDLE_SECURITY *Security,
605 RPC_BINDING_HANDLE_OPTIONS *Options,
606 RPC_BINDING_HANDLE *Binding
607);
608
609RPC_STATUS RPC_ENTRY RpcBindingCreateW(
610 RPC_BINDING_HANDLE_TEMPLATE *Template,
611 RPC_BINDING_HANDLE_SECURITY *Security,
612 RPC_BINDING_HANDLE_OPTIONS *Options,
613 RPC_BINDING_HANDLE *Binding
614);
615#define RpcBindingCreate __MINGW_NAME_AW(RpcBindingCreate)
616
617RPC_STATUS RpcServerInqBindingHandle(
618 RPC_BINDING_HANDLE *Binding
619);
620
621#endif /*(_WIN32_WINNT >= 0x0600)*/
622
623#include <rpcdcep.h>
624
625#ifdef __cplusplus
626}
627#endif
628#endif
Note: See TracBrowser for help on using the repository browser.