Build Subversion 1.4.6 + Perl + OpenSSL 1.0
[msysgit.git] / include / rpcndr.h
blob037918f8de717932435e3656efd6f3621e585e2f
1 #ifndef __RPCNDR_H__
2 #define __RPCNDR_H__
3 #ifndef __RPCNDR_H_VERSION__
4 #define __RPCNDR_H_VERSION__ ( 450 )
5 #endif /* __RPCNDR_H_VERSION__ */
6 #include <rpcnsip.h>
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 #include <objfwd.h>
11 #define DECLSPEC_UUID(x)
12 #define MIDL_INTERFACE(x) struct
13 #define NDR_CHAR_REP_MASK (unsigned long)0xFL
14 #define NDR_INT_REP_MASK (unsigned long)0xF0L
15 #define NDR_FLOAT_REP_MASK (unsigned long)0xFF00L
16 #define NDR_LITTLE_ENDIAN (unsigned long)0x10L
17 #define NDR_BIG_ENDIAN (unsigned long)0
18 #define NDR_IEEE_FLOAT (unsigned long)0
19 #define NDR_VAX_FLOAT (unsigned long)0x100L
20 #define NDR_ASCII_CHAR (unsigned long)0
21 #define NDR_EBCDIC_CHAR (unsigned long)1
22 #define NDR_LOCAL_DATA_REPRESENTATION (unsigned long)0x10L
23 #define NDR_LOCAL_ENDIAN NDR_LITTLE_ENDIAN
24 #define __RPC_CALLEE __stdcall
25 #ifndef __MIDL_USER_DEFINED
26 #define midl_user_allocate MIDL_user_allocate
27 #define midl_user_free MIDL_user_free
28 #define __MIDL_USER_DEFINED
29 #endif
30 #define RPC_VAR_ENTRY __cdecl
31 #ifdef _M_IX86
32 #define __MIDL_DECLSPEC_DLLIMPORT __declspec(dllimport)
33 #define __MIDL_DECLSPEC_DLLEXPORT __declspec(dllexport)
34 #else
35 #define __MIDL_DECLSPEC_DLLIMPORT
36 #define __MIDL_DECLSPEC_DLLEXPORT
37 #endif
38 #if defined(_HAVE_INT64) || (defined(_INTEGRAL_MAX_BITS) && _INTEGRAL_MAX_BITS >= 64)
39 #define hyper __int64
40 #define MIDL_uhyper unsigned __int64
41 #else
42 #define hyper double
43 #define MIDL_uhyper double
44 #endif
45 #define small char
46 typedef unsigned char byte;
47 #define NDRSContextValue(hContext) (&(hContext)->userContext)
48 #define cbNDRContext 20
49 #define byte_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
50 #define byte_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
51 #define boolean_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
52 #define boolean_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
53 #define small_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
54 #define small_from_ndr_temp(source, target, format) { *(target) = *(*(char**)(source))++; }
55 #define small_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
56 #define MIDL_ascii_strlen(string) strlen(string)
57 #define MIDL_ascii_strcpy(target,source) strcpy(target,source)
58 #define MIDL_memset(s,c,n) memset(s,c,n)
59 #define _midl_ma1( p, cast ) *(*( cast **)&p)++
60 #define _midl_ma2( p, cast ) *(*( cast **)&p)++
61 #define _midl_ma4( p, cast ) *(*( cast **)&p)++
62 #define _midl_ma8( p, cast ) *(*( cast **)&p)++
63 #define _midl_unma1( p, cast ) *(( cast *)p)++
64 #define _midl_unma2( p, cast ) *(( cast *)p)++
65 #define _midl_unma3( p, cast ) *(( cast *)p)++
66 #define _midl_unma4( p, cast ) *(( cast *)p)++
67 #define _midl_fa2( p ) (p = (RPC_BUFPTR )((unsigned long)(p+1) & 0xfffffffe))
68 #define _midl_fa4( p ) (p = (RPC_BUFPTR )((unsigned long)(p+3) & 0xfffffffc))
69 #define _midl_fa8( p ) (p = (RPC_BUFPTR )((unsigned long)(p+7) & 0xfffffff8))
70 #define _midl_addp( p, n ) (p += n)
71 #define _midl_marsh_lhs( p, cast ) *(*( cast **)&p)++
72 #define _midl_marsh_up( mp, p ) *(*(unsigned long **)&mp)++ = (unsigned long)p
73 #define _midl_advmp( mp ) *(*(unsigned long **)&mp)++
74 #define _midl_unmarsh_up( p ) (*(*(unsigned long **)&p)++)
75 #define NdrMarshConfStringHdr( p, s, l ) (_midl_ma4( p, unsigned long) = s, _midl_ma4( p, unsigned long) = 0, _midl_ma4( p, unsigned long) = l)
76 #define NdrUnMarshConfStringHdr(p, s, l) ((s=_midl_unma4(p,unsigned long), (_midl_addp(p,4)), (l=_midl_unma4(p,unsigned long))
77 #define NdrMarshCCtxtHdl(pc,p) (NDRCContextMarshall( (NDR_CCONTEXT)pc, p ),p+20)
78 #define NdrUnMarshCCtxtHdl(pc,p,h,drep) (NDRCContextUnmarshall((NDR_CONTEXT)pc,h,p,drep), p+20)
79 #define NdrUnMarshSCtxtHdl(pc, p,drep) (pc = NdrSContextUnMarshall(p,drep ))
80 #define NdrMarshSCtxtHdl(pc,p,rd) (NdrSContextMarshall((NDR_SCONTEXT)pc,p, (NDR_RUNDOWN)rd)
81 #define NdrFieldOffset(s,f) (long)(& (((s *)0)->f))
82 #define NdrFieldPad(s,f,p,t) (NdrFieldOffset(s,f) - NdrFieldOffset(s,p) - sizeof(t))
83 #define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
84 #define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), (unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
85 #ifdef CONST_VTABLE
86 #define CONST_VTBL const
87 #else
88 #define CONST_VTBL
89 #endif
90 typedef void *NDR_CCONTEXT;
91 typedef struct {
92 void *pad[2];
93 void *userContext;
94 } *NDR_SCONTEXT;
95 typedef void (__RPC_USER *NDR_RUNDOWN)(void*);
96 typedef struct _SCONTEXT_QUEUE {
97 unsigned long NumberOfObjects;
98 NDR_SCONTEXT *ArrayOfObjects;
99 } SCONTEXT_QUEUE,*PSCONTEXT_QUEUE;
100 struct _MIDL_STUB_MESSAGE;
101 struct _MIDL_STUB_DESC;
102 struct _FULL_PTR_XLAT_TABLES;
103 typedef unsigned char *RPC_BUFPTR;
104 typedef unsigned long RPC_LENGTH;
105 typedef void(__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE*);
106 typedef const unsigned char *PFORMAT_STRING;
107 typedef struct {
108 long Dimension;
109 unsigned long *BufferConformanceMark;
110 unsigned long *BufferVarianceMark;
111 unsigned long *MaxCountArray;
112 unsigned long *OffsetArray;
113 unsigned long *ActualCountArray;
114 } ARRAY_INFO,*PARRAY_INFO;
116 RPC_BINDING_HANDLE RPC_ENTRY NDRCContextBinding(NDR_CCONTEXT);
117 void RPC_ENTRY NDRCContextMarshall(NDR_CCONTEXT,void*);
118 void RPC_ENTRY NDRCContextUnmarshall(NDR_CCONTEXT*,RPC_BINDING_HANDLE,void*,unsigned long);
119 void RPC_ENTRY NDRSContextMarshall(NDR_SCONTEXT,void*,NDR_RUNDOWN);
120 NDR_SCONTEXT RPC_ENTRY NDRSContextUnmarshall(void*pBuff,unsigned long);
121 void RPC_ENTRY RpcSsDestroyClientContext(void**);
122 void RPC_ENTRY NDRcopy(void*,void*,unsigned int);
123 unsigned int RPC_ENTRY MIDL_wchar_strlen(wchar_t*);
124 void RPC_ENTRY MIDL_wchar_strcpy(void*,wchar_t*);
125 void RPC_ENTRY char_from_ndr(PRPC_MESSAGE,unsigned char*);
126 void RPC_ENTRY char_array_from_ndr(PRPC_MESSAGE,unsigned long,unsigned long,unsigned char*);
127 void RPC_ENTRY short_from_ndr(PRPC_MESSAGE,unsigned short*);
128 void RPC_ENTRY short_array_from_ndr(PRPC_MESSAGE,unsigned long,unsigned long,unsigned short*);
129 void RPC_ENTRY short_from_ndr_temp(unsigned char**,unsigned short*,unsigned long);
130 void RPC_ENTRY long_from_ndr(PRPC_MESSAGE,unsigned long*);
131 void RPC_ENTRY long_array_from_ndr(PRPC_MESSAGE,unsigned long,unsigned long,unsigned long*);
132 void RPC_ENTRY long_from_ndr_temp(unsigned char**,unsigned long*,unsigned long);
133 void RPC_ENTRY enum_from_ndr(PRPC_MESSAGE,unsigned int*);
134 void RPC_ENTRY float_from_ndr(PRPC_MESSAGE,void*);
135 void RPC_ENTRY float_array_from_ndr(PRPC_MESSAGE,unsigned long,unsigned long,void*);
136 void RPC_ENTRY double_from_ndr(PRPC_MESSAGE,void*);
137 void RPC_ENTRY double_array_from_ndr(PRPC_MESSAGE,unsigned long,unsigned long,void*);
138 void RPC_ENTRY hyper_from_ndr(PRPC_MESSAGE,hyper*);
139 void RPC_ENTRY hyper_array_from_ndr(PRPC_MESSAGE,unsigned long,unsigned long,hyper*);
140 void RPC_ENTRY hyper_from_ndr_temp(unsigned char**,hyper*,unsigned long);
141 void RPC_ENTRY data_from_ndr(PRPC_MESSAGE,void*,char*,unsigned char);
142 void RPC_ENTRY data_into_ndr(void*,PRPC_MESSAGE,char*,unsigned char);
143 void RPC_ENTRY tree_into_ndr(void*,PRPC_MESSAGE,char*,unsigned char);
144 void RPC_ENTRY data_size_ndr(void*,PRPC_MESSAGE,char*,unsigned char);
145 void RPC_ENTRY tree_size_ndr(void*,PRPC_MESSAGE,char*,unsigned char);
146 void RPC_ENTRY tree_peek_ndr(PRPC_MESSAGE,unsigned char**,char*,unsigned char);
147 void *RPC_ENTRY midl_allocate(int);
149 #pragma pack(push,4)
150 typedef struct _MIDL_STUB_MESSAGE {
151 PRPC_MESSAGE RpcMsg;
152 unsigned char *Buffer;
153 unsigned char *BufferStart;
154 unsigned char *BufferEnd;
155 unsigned char *BufferMark;
156 unsigned long BufferLength;
157 unsigned long MemorySize;
158 unsigned char *Memory;
159 int IsClient;
160 int ReuseBuffer;
161 unsigned char *AllocAllNodesMemory;
162 unsigned char *AllocAllNodesMemoryEnd;
163 int IgnoreEmbeddedPointers;
164 unsigned char *PointerBufferMark;
165 unsigned char fBufferValid;
166 unsigned char Unused;
167 unsigned long MaxCount;
168 unsigned long Offset;
169 unsigned long ActualCount;
170 void*(__RPC_API *pfnAllocate)(unsigned int);
171 void(__RPC_API *pfnFree)(void*);
172 unsigned char *StackTop;
173 unsigned char *pPresentedType;
174 unsigned char *pTransmitType;
175 handle_t SavedHandle;
176 const struct _MIDL_STUB_DESC *StubDesc;
177 struct _FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
178 unsigned long FullPtrRefId;
179 int fCheckBounds;
180 int fInDontFree :1;
181 int fDontCallFreeInst :1;
182 int fInOnlyParam :1;
183 int fHasReturn :1;
184 unsigned long dwDestContext;
185 void*pvDestContext;
186 NDR_SCONTEXT *SavedContextHandles;
187 long ParamNumber;
188 struct IRpcChannelBuffer *pRpcChannelBuffer;
189 PARRAY_INFO pArrayInfo;
190 unsigned long *SizePtrCountArray;
191 unsigned long *SizePtrOffsetArray;
192 unsigned long *SizePtrLengthArray;
193 void*pArgQueue;
194 unsigned long dwStubPhase;
195 unsigned long Reserved[5];
196 } MIDL_STUB_MESSAGE,*PMIDL_STUB_MESSAGE;
197 #pragma pack(pop)
198 typedef void*(__RPC_API *GENERIC_BINDING_ROUTINE)(void*);
199 typedef void (__RPC_API *GENERIC_UNBIND_ROUTINE)(void*,unsigned char*);
200 typedef struct _GENERIC_BINDING_ROUTINE_PAIR {
201 GENERIC_BINDING_ROUTINE pfnBind;
202 GENERIC_UNBIND_ROUTINE pfnUnbind;
203 } GENERIC_BINDING_ROUTINE_PAIR,*PGENERIC_BINDING_ROUTINE_PAIR;
204 typedef struct __GENERIC_BINDING_INFO {
205 void *pObj;
206 unsigned int Size;
207 GENERIC_BINDING_ROUTINE pfnBind;
208 GENERIC_UNBIND_ROUTINE pfnUnbind;
209 } GENERIC_BINDING_INFO,*PGENERIC_BINDING_INFO;
210 typedef void(__RPC_USER *XMIT_HELPER_ROUTINE)(PMIDL_STUB_MESSAGE);
211 typedef struct _XMIT_ROUTINE_QUINTUPLE {
212 XMIT_HELPER_ROUTINE pfnTranslateToXmit;
213 XMIT_HELPER_ROUTINE pfnTranslateFromXmit;
214 XMIT_HELPER_ROUTINE pfnFreeXmit;
215 XMIT_HELPER_ROUTINE pfnFreeInst;
216 } XMIT_ROUTINE_QUINTUPLE,*PXMIT_ROUTINE_QUINTUPLE;
217 typedef struct _MALLOC_FREE_STRUCT {
218 void*(__RPC_USER *pfnAllocate)(unsigned int);
219 void(__RPC_USER *pfnFree)(void*);
220 } MALLOC_FREE_STRUCT;
221 typedef struct _COMM_FAULT_OFFSETS {
222 short CommOffset;
223 short FaultOffset;
224 } COMM_FAULT_OFFSETS;
225 typedef struct _MIDL_STUB_DESC {
226 void*RpcInterfaceInformation;
227 void*(__RPC_API *pfnAllocate)(unsigned int);
228 void(__RPC_API *pfnFree)(void*);
229 union {
230 handle_t *pAutoHandle;
231 handle_t *pPrimitiveHandle;
232 PGENERIC_BINDING_INFO pGenericBindingInfo;
233 } IMPLICIT_HANDLE_INFO;
234 const NDR_RUNDOWN *apfnNdrRundownRoutines;
235 const GENERIC_BINDING_ROUTINE_PAIR *aGenericBindingRoutinePairs;
236 const EXPR_EVAL *apfnExprEval;
237 const XMIT_ROUTINE_QUINTUPLE *aXmitQuintuple;
238 const unsigned char *pFormatTypes;
239 int fCheckBounds;
240 unsigned long Version;
241 MALLOC_FREE_STRUCT *pMallocFreeStruct;
242 long MIDLVersion;
243 const COMM_FAULT_OFFSETS *CommFaultOffsets;
244 } MIDL_STUB_DESC;
245 typedef const MIDL_STUB_DESC *PMIDL_STUB_DESC;
246 typedef void*PMIDL_XMIT_TYPE;
247 typedef struct _MIDL_FORMAT_STRING {
248 short Pad;
249 unsigned char Format[1];
250 } MIDL_FORMAT_STRING;
251 typedef void(__RPC_API *STUB_THUNK)(PMIDL_STUB_MESSAGE);
252 typedef long(__RPC_API *SERVER_ROUTINE)(void);
253 typedef struct _MIDL_SERVER_INFO_ {
254 PMIDL_STUB_DESC pStubDesc;
255 const SERVER_ROUTINE *DispatchTable;
256 PFORMAT_STRING ProcString;
257 const unsigned short *FmtStringOffset;
258 const STUB_THUNK *ThunkTable;
259 } MIDL_SERVER_INFO,*PMIDL_SERVER_INFO;
260 typedef struct _MIDL_STUBLESS_PROXY_INFO {
261 PMIDL_STUB_DESC pStubDesc;
262 PFORMAT_STRING ProcFormatString;
263 const unsigned short *FormatStringOffset;
264 } MIDL_STUBLESS_PROXY_INFO;
265 typedef MIDL_STUBLESS_PROXY_INFO *PMIDL_STUBLESS_PROXY_INFO;
266 typedef union _CLIENT_CALL_RETURN {
267 void *Pointer;
268 long Simple;
269 } CLIENT_CALL_RETURN;
270 typedef enum { XLAT_SERVER = 1,XLAT_CLIENT } XLAT_SIDE;
271 typedef struct _FULL_PTR_TO_REFID_ELEMENT {
272 struct _FULL_PTR_TO_REFID_ELEMENT *Next;
273 void*Pointer;
274 unsigned long RefId;
275 unsigned char State;
276 } FULL_PTR_TO_REFID_ELEMENT,*PFULL_PTR_TO_REFID_ELEMENT;
277 typedef struct _FULL_PTR_XLAT_TABLES {
278 struct {
279 void **XlatTable;
280 unsigned char *StateTable;
281 unsigned long NumberOfEntries;
282 } RefIdToPointer;
283 struct {
284 PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
285 unsigned long NumberOfBuckets;
286 unsigned long HashMask;
287 } PointerToRefId;
288 unsigned long NextRefId;
289 XLAT_SIDE XlatSide;
290 } FULL_PTR_XLAT_TABLES,*PFULL_PTR_XLAT_TABLES;
291 void RPC_ENTRY NdrSimpleTypeMarshall(PMIDL_STUB_MESSAGE,unsigned char*,unsigned char);
292 unsigned char *RPC_ENTRY NdrPointerMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING pFormat);
293 unsigned char *RPC_ENTRY NdrSimpleStructMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
294 unsigned char *RPC_ENTRY NdrConformantStructMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
295 unsigned char *RPC_ENTRY NdrConformantVaryingStructMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
296 unsigned char *RPC_ENTRY NdrHardStructMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
297 unsigned char *RPC_ENTRY NdrComplexStructMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
298 unsigned char *RPC_ENTRY NdrFixedArrayMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
299 unsigned char *RPC_ENTRY NdrConformantArrayMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
300 unsigned char *RPC_ENTRY NdrConformantVaryingArrayMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
301 unsigned char *RPC_ENTRY NdrVaryingArrayMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
302 unsigned char *RPC_ENTRY NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
303 unsigned char *RPC_ENTRY NdrNonConformantStringMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
304 unsigned char *RPC_ENTRY NdrConformantStringMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
305 unsigned char *RPC_ENTRY NdrEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
306 unsigned char *RPC_ENTRY NdrNonEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
307 unsigned char *RPC_ENTRY NdrByteCountPointerMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
308 unsigned char *RPC_ENTRY NdrXmitOrRepAsMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
309 unsigned char *RPC_ENTRY NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
310 void RPC_ENTRY NdrClientContextMarshall(PMIDL_STUB_MESSAGE,NDR_CCONTEXT,int);
311 void RPC_ENTRY NdrServerContextMarshall(PMIDL_STUB_MESSAGE,NDR_SCONTEXT,NDR_RUNDOWN);
312 void RPC_ENTRY NdrSimpleTypeUnmarshall(PMIDL_STUB_MESSAGE,unsigned char*,unsigned char);
313 unsigned char *RPC_ENTRY NdrPointerUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
314 unsigned char *RPC_ENTRY NdrSimpleStructUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
315 unsigned char *RPC_ENTRY NdrConformantStructUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
316 unsigned char *RPC_ENTRY NdrConformantVaryingStructUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
317 unsigned char *RPC_ENTRY NdrHardStructUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
318 unsigned char *RPC_ENTRY NdrComplexStructUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
319 unsigned char *RPC_ENTRY NdrFixedArrayUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
320 unsigned char *RPC_ENTRY NdrConformantArrayUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
321 unsigned char *RPC_ENTRY NdrConformantVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
322 unsigned char *RPC_ENTRY NdrVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
323 unsigned char *RPC_ENTRY NdrComplexArrayUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
324 unsigned char *RPC_ENTRY NdrNonConformantStringUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
325 unsigned char *RPC_ENTRY NdrConformantStringUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
326 unsigned char *RPC_ENTRY NdrEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
327 unsigned char *RPC_ENTRY NdrNonEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
328 unsigned char *RPC_ENTRY NdrByteCountPointerUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
329 unsigned char *RPC_ENTRY NdrXmitOrRepAsUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
330 unsigned char *RPC_ENTRY NdrInterfacePointerUnmarshall(PMIDL_STUB_MESSAGE,unsigned char**,PFORMAT_STRING,unsigned char);
331 void RPC_ENTRY NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE,NDR_CCONTEXT*,RPC_BINDING_HANDLE);
332 NDR_SCONTEXT RPC_ENTRY NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE);
333 void RPC_ENTRY NdrPointerBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
334 void RPC_ENTRY NdrSimpleStructBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
335 void RPC_ENTRY NdrConformantStructBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
336 void RPC_ENTRY NdrConformantVaryingStructBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
337 void RPC_ENTRY NdrHardStructBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
338 void RPC_ENTRY NdrComplexStructBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
339 void RPC_ENTRY NdrFixedArrayBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
340 void RPC_ENTRY NdrConformantArrayBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
341 void RPC_ENTRY NdrConformantVaryingArrayBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
342 void RPC_ENTRY NdrVaryingArrayBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
343 void RPC_ENTRY NdrComplexArrayBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
344 void RPC_ENTRY NdrConformantStringBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
345 void RPC_ENTRY NdrNonConformantStringBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
346 void RPC_ENTRY NdrEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
347 void RPC_ENTRY NdrNonEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
348 void RPC_ENTRY NdrByteCountPointerBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
349 void RPC_ENTRY NdrXmitOrRepAsBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
350 void RPC_ENTRY NdrInterfacePointerBufferSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
351 void RPC_ENTRY NdrContextHandleSize(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
352 unsigned long RPC_ENTRY NdrPointerMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
353 unsigned long RPC_ENTRY NdrSimpleStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
354 unsigned long RPC_ENTRY NdrConformantStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
355 unsigned long RPC_ENTRY NdrConformantVaryingStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
356 unsigned long RPC_ENTRY NdrHardStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
357 unsigned long RPC_ENTRY NdrComplexStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
358 unsigned long RPC_ENTRY NdrFixedArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
359 unsigned long RPC_ENTRY NdrConformantArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
360 unsigned long RPC_ENTRY NdrConformantVaryingArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
361 unsigned long RPC_ENTRY NdrVaryingArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
362 unsigned long RPC_ENTRY NdrComplexArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
363 unsigned long RPC_ENTRY NdrConformantStringMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
364 unsigned long RPC_ENTRY NdrNonConformantStringMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
365 unsigned long RPC_ENTRY NdrEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
366 unsigned long RPC_ENTRY NdrNonEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
367 unsigned long RPC_ENTRY NdrXmitOrRepAsMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
368 unsigned long RPC_ENTRY NdrInterfacePointerMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
369 void RPC_ENTRY NdrPointerFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
370 void RPC_ENTRY NdrSimpleStructFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
371 void RPC_ENTRY NdrConformantStructFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
372 void RPC_ENTRY NdrConformantVaryingStructFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
373 void RPC_ENTRY NdrHardStructFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
374 void RPC_ENTRY NdrComplexStructFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
375 void RPC_ENTRY NdrFixedArrayFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
376 void RPC_ENTRY NdrConformantArrayFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
377 void RPC_ENTRY NdrConformantVaryingArrayFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
378 void RPC_ENTRY NdrVaryingArrayFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
379 void RPC_ENTRY NdrComplexArrayFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
380 void RPC_ENTRY NdrEncapsulatedUnionFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
381 void RPC_ENTRY NdrNonEncapsulatedUnionFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
382 void RPC_ENTRY NdrByteCountPointerFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
383 void RPC_ENTRY NdrXmitOrRepAsFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
384 void RPC_ENTRY NdrInterfacePointerFree(PMIDL_STUB_MESSAGE,unsigned char*,PFORMAT_STRING);
385 void RPC_ENTRY NdrConvert(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
386 void RPC_ENTRY NdrClientInitializeNew(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,unsigned int);
387 unsigned char *RPC_ENTRY NdrServerInitializeNew(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC);
388 void RPC_ENTRY NdrClientInitialize(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,unsigned int);
389 unsigned char *RPC_ENTRY NdrServerInitialize(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC);
390 unsigned char *RPC_ENTRY NdrServerInitializeUnmarshall(PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,PRPC_MESSAGE);
391 void RPC_ENTRY NdrServerInitializeMarshall(PRPC_MESSAGE,PMIDL_STUB_MESSAGE);
392 unsigned char *RPC_ENTRY NdrGetBuffer(PMIDL_STUB_MESSAGE,unsigned long,RPC_BINDING_HANDLE);
393 unsigned char *RPC_ENTRY NdrNsGetBuffer(PMIDL_STUB_MESSAGE,unsigned long,RPC_BINDING_HANDLE);
394 unsigned char *RPC_ENTRY NdrSendReceive(PMIDL_STUB_MESSAGE,unsigned char*);
395 unsigned char *RPC_ENTRY NdrNsSendReceive(PMIDL_STUB_MESSAGE,unsigned char*,RPC_BINDING_HANDLE*);
396 void RPC_ENTRY NdrFreeBuffer(PMIDL_STUB_MESSAGE);
397 CLIENT_CALL_RETURN RPC_VAR_ENTRY NdrClientCall(PMIDL_STUB_DESC,PFORMAT_STRING,...);
398 typedef enum {
399 STUB_UNMARSHAL,
400 STUB_CALL_SERVER,
401 STUB_MARSHAL,
402 STUB_CALL_SERVER_NO_HRESULT
403 } STUB_PHASE;
404 typedef enum {
405 PROXY_CALCSIZE,
406 PROXY_GETBUFFER,
407 PROXY_MARSHAL,
408 PROXY_SENDRECEIVE,
409 PROXY_UNMARSHAL
410 } PROXY_PHASE;
411 long RPC_ENTRY NdrStubCall(struct IRpcStubBuffer*,struct IRpcChannelBuffer*,PRPC_MESSAGE,unsigned long*);
412 void RPC_ENTRY NdrServerCall(PRPC_MESSAGE);
413 int RPC_ENTRY NdrServerUnmarshall(struct IRpcChannelBuffer*,PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,PFORMAT_STRING,void*);
414 void RPC_ENTRY NdrServerMarshall(struct IRpcStubBuffer*,struct IRpcChannelBuffer*,PMIDL_STUB_MESSAGE,PFORMAT_STRING);
415 RPC_STATUS RPC_ENTRY NdrMapCommAndFaultStatus(PMIDL_STUB_MESSAGE,unsigned long*,unsigned long*,RPC_STATUS);
416 int RPC_ENTRY NdrSH_UPDecision(PMIDL_STUB_MESSAGE,unsigned char**,RPC_BUFPTR);
417 int RPC_ENTRY NdrSH_TLUPDecision(PMIDL_STUB_MESSAGE,unsigned char**);
418 int RPC_ENTRY NdrSH_TLUPDecisionBuffer(PMIDL_STUB_MESSAGE,unsigned char**);
419 int RPC_ENTRY NdrSH_IfAlloc(PMIDL_STUB_MESSAGE,unsigned char**,unsigned long);
420 int RPC_ENTRY NdrSH_IfAllocRef(PMIDL_STUB_MESSAGE,unsigned char**,unsigned long);
421 int RPC_ENTRY NdrSH_IfAllocSet(PMIDL_STUB_MESSAGE,unsigned char**,unsigned long);
422 RPC_BUFPTR RPC_ENTRY NdrSH_IfCopy(PMIDL_STUB_MESSAGE,unsigned char**,unsigned long);
423 RPC_BUFPTR RPC_ENTRY NdrSH_IfAllocCopy(PMIDL_STUB_MESSAGE,unsigned char**,unsigned long);
424 unsigned long RPC_ENTRY NdrSH_Copy(unsigned char*,unsigned char*,unsigned long);
425 void RPC_ENTRY NdrSH_IfFree(PMIDL_STUB_MESSAGE,unsigned char*);
426 RPC_BUFPTR RPC_ENTRY NdrSH_StringMarshall(PMIDL_STUB_MESSAGE,unsigned char*,unsigned long,int);
427 RPC_BUFPTR RPC_ENTRY NdrSH_StringUnMarshall(PMIDL_STUB_MESSAGE,unsigned char**,int);
428 typedef void *RPC_SS_THREAD_HANDLE;
429 typedef void* __RPC_API RPC_CLIENT_ALLOC(unsigned int);
430 typedef void __RPC_API RPC_CLIENT_FREE(void*);
431 void*RPC_ENTRY RpcSsAllocate(unsigned int);
432 void RPC_ENTRY RpcSsDisableAllocate(void);
433 void RPC_ENTRY RpcSsEnableAllocate(void);
434 void RPC_ENTRY RpcSsFree(void*);
435 RPC_SS_THREAD_HANDLE RPC_ENTRY RpcSsGetThreadHandle(void);
436 void RPC_ENTRY RpcSsSetClientAllocFree(RPC_CLIENT_ALLOC*,RPC_CLIENT_FREE*);
437 void RPC_ENTRY RpcSsSetThreadHandle(RPC_SS_THREAD_HANDLE);
438 void RPC_ENTRY RpcSsSwapClientAllocFree(RPC_CLIENT_ALLOC*,RPC_CLIENT_FREE*,RPC_CLIENT_ALLOC**,RPC_CLIENT_FREE**);
439 void*RPC_ENTRY RpcSmAllocate(unsigned int,RPC_STATUS*);
440 RPC_STATUS RPC_ENTRY RpcSmClientFree(void*);
441 RPC_STATUS RPC_ENTRY RpcSmDestroyClientContext(void**);
442 RPC_STATUS RPC_ENTRY RpcSmDisableAllocate(void);
443 RPC_STATUS RPC_ENTRY RpcSmEnableAllocate(void);
444 RPC_STATUS RPC_ENTRY RpcSmFree(void*);
445 RPC_SS_THREAD_HANDLE RPC_ENTRY RpcSmGetThreadHandle(RPC_STATUS*);
446 RPC_STATUS RPC_ENTRY RpcSmSetClientAllocFree(RPC_CLIENT_ALLOC*,RPC_CLIENT_FREE*);
447 RPC_STATUS RPC_ENTRY RpcSmSetThreadHandle(RPC_SS_THREAD_HANDLE);
448 RPC_STATUS RPC_ENTRY RpcSmSwapClientAllocFree(RPC_CLIENT_ALLOC*,RPC_CLIENT_FREE*,RPC_CLIENT_ALLOC**,RPC_CLIENT_FREE**);
449 void RPC_ENTRY NdrRpcSsEnableAllocate(PMIDL_STUB_MESSAGE);
450 void RPC_ENTRY NdrRpcSsDisableAllocate(PMIDL_STUB_MESSAGE);
451 void RPC_ENTRY NdrRpcSmSetClientToOsf(PMIDL_STUB_MESSAGE);
452 void*RPC_ENTRY NdrRpcSmClientAllocate(unsigned int);
453 void RPC_ENTRY NdrRpcSmClientFree(void*);
454 void*RPC_ENTRY NdrRpcSsDefaultAllocate(unsigned int);
455 void RPC_ENTRY NdrRpcSsDefaultFree(void*);
456 PFULL_PTR_XLAT_TABLES RPC_ENTRY NdrFullPointerXlatInit(unsigned long,XLAT_SIDE);
457 void RPC_ENTRY NdrFullPointerXlatFree(PFULL_PTR_XLAT_TABLES);
458 int RPC_ENTRY NdrFullPointerQueryPointer(PFULL_PTR_XLAT_TABLES,void*,unsigned char,unsigned long*);
459 int RPC_ENTRY NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES,unsigned long,unsigned char,void**);
460 void RPC_ENTRY NdrFullPointerInsertRefId(PFULL_PTR_XLAT_TABLES,unsigned long,void*);
461 int RPC_ENTRY NdrFullPointerFree(PFULL_PTR_XLAT_TABLES,void*);
462 void*RPC_ENTRY NdrAllocate(PMIDL_STUB_MESSAGE,unsigned int);
463 void RPC_ENTRY NdrClearOutParameters(PMIDL_STUB_MESSAGE,PFORMAT_STRING,void*);
464 void*RPC_ENTRY NdrOleAllocate(unsigned int);
465 void RPC_ENTRY NdrOleFree(void*);
466 #ifdef __cplusplus
468 #endif
469 #endif