Add Content Types for a few common extensions.
[wine.git] / include / rpcndr.h
blob6bd3ff0add57bdbe9ddfa6a9f5a6ba9ec4e836a5
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __RPCNDR_H_VERSION__
20 /* FIXME: What version? Perhaps something is better than nothing, however incorrect */
21 #define __RPCNDR_H_VERSION__ ( 399 )
22 #endif
24 #ifndef __WINE_RPCNDR_H
25 #define __WINE_RPCNDR_H
27 #include <basetsd.h>
29 /* stupid #if can't handle casts... this __stupidity
30 is just a workaround for that limitation */
32 #define __NDR_CHAR_REP_MASK 0x000fL
33 #define __NDR_INT_REP_MASK 0x00f0L
34 #define __NDR_FLOAT_REP_MASK 0xff00L
36 #define __NDR_IEEE_FLOAT 0x0000L
37 #define __NDR_VAX_FLOAT 0x0100L
38 #define __NDR_IBM_FLOAT 0x0300L
40 #define __NDR_ASCII_CHAR 0x0000L
41 #define __NDR_EBCDIC_CHAR 0x0001L
43 #define __NDR_LITTLE_ENDIAN 0x0010L
44 #define __NDR_BIG_ENDIAN 0x0000L
46 /* Mac's are special */
47 #if defined(__RPC_MAC__)
48 #define __NDR_LOCAL_DATA_REPRESENTATION \
49 (__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_BIG_ENDIAN)
50 #else
51 #define __NDR_LOCAL_DATA_REPRESENTATION \
52 (__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_LITTLE_ENDIAN)
53 #endif
55 #define __NDR_LOCAL_ENDIAN \
56 (__NDR_LOCAL_DATA_REPRESENTATION & __NDR_INT_REP_MASK)
58 /* for convenience, define NDR_LOCAL_IS_BIG_ENDIAN iff it is */
59 #if __NDR_LOCAL_ENDIAN == __NDR_BIG_ENDIAN
60 #define NDR_LOCAL_IS_BIG_ENDIAN
61 #elif __NDR_LOCAL_ENDIAN == __NDR_LITTLE_ENDIAN
62 #undef NDR_LOCAL_IS_BIG_ENDIAN
63 #else
64 #error alien NDR_LOCAL_ENDIAN - Greg botched the defines again, please report
65 #endif
67 /* finally, do the casts like Microsoft */
69 #define NDR_CHAR_REP_MASK ((unsigned long) __NDR_CHAR_REP_MASK)
70 #define NDR_INT_REP_MASK ((unsigned long) __NDR_INT_REP_MASK)
71 #define NDR_FLOAT_REP_MASK ((unsigned long) __NDR_FLOAT_REP_MASK)
72 #define NDR_IEEE_FLOAT ((unsigned long) __NDR_IEEE_FLOAT)
73 #define NDR_VAX_FLOAT ((unsigned long) __NDR_VAX_FLOAT)
74 #define NDR_IBM_FLOAT ((unsigned long) __NDR_IBM_FLOAT)
75 #define NDR_ASCII_CHAR ((unsigned long) __NDR_ASCII_CHAR)
76 #define NDR_EBCDIC_CHAR ((unsigned long) __NDR_EBCDIC_CHAR)
77 #define NDR_LITTLE_ENDIAN ((unsigned long) __NDR_LITTLE_ENDIAN)
78 #define NDR_BIG_ENDIAN ((unsigned long) __NDR_BIG_ENDIAN)
79 #define NDR_LOCAL_DATA_REPRESENTATION ((unsigned long) __NDR_LOCAL_DATA_REPRESENTATION)
80 #define NDR_LOCAL_ENDIAN ((unsigned long) __NDR_LOCAL_ENDIAN)
83 #define TARGET_IS_NT50_OR_LATER 1
84 #define TARGET_IS_NT40_OR_LATER 1
85 #define TARGET_IS_NT351_OR_WIN95_OR_LATER 1
87 typedef unsigned char byte;
88 #define hyper __int64
89 #define MIDL_uhyper unsigned __int64
90 /* 'boolean' tend to conflict, let's call it _wine_boolean */
91 typedef unsigned char _wine_boolean;
92 /* typedef _wine_boolean boolean; */
94 #define __RPC_CALLEE WINAPI
95 #define RPC_VAR_ENTRY WINAPIV
97 #define MIDL_ascii_strlen(s) strlen(s)
98 #define MIDL_ascii_strcpy(d,s) strcpy(d,s)
99 #define MIDL_memset(d,v,n) memset(d,v,n)
101 #define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
102 #define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
103 (unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
105 typedef struct
107 void *pad[2];
108 void *userContext;
109 } *NDR_SCONTEXT;
111 #define NDRSContextValue(hContext) (&(hContext)->userContext)
112 #define cbNDRContext 20
114 typedef void (__RPC_USER *NDR_RUNDOWN)(void *context);
115 typedef void (__RPC_USER *NDR_NOTIFY_ROUTINE)(void);
116 typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(_wine_boolean flag);
118 #define DECLSPEC_UUID(x)
119 #define MIDL_INTERFACE(x) struct
121 struct _MIDL_STUB_MESSAGE;
122 struct _MIDL_STUB_DESC;
123 struct _FULL_PTR_XLAT_TABLES;
125 typedef void (__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE *);
126 typedef const unsigned char *PFORMAT_STRING;
128 typedef struct
130 long Dimension;
131 unsigned long *BufferConformanceMark;
132 unsigned long *BufferVarianceMark;
133 unsigned long *MaxCountArray;
134 unsigned long *OffsetArray;
135 unsigned long *ActualCountArray;
136 } ARRAY_INFO, *PARRAY_INFO;
138 typedef struct _NDR_PIPE_DESC *PNDR_PIPE_DESC;
139 typedef struct _NDR_PIPE_MESSAGE *PNDR_PIPE_MESSAGE;
140 typedef struct _NDR_ASYNC_MESSAGE *PNDR_ASYNC_MESSAGE;
141 typedef struct _NDR_CORRELATION_INFO *PNDR_CORRELATION_INFO;
143 #include <pshpack4.h>
144 typedef struct _MIDL_STUB_MESSAGE
146 PRPC_MESSAGE RpcMsg;
147 unsigned char *Buffer;
148 unsigned char *BufferStart;
149 unsigned char *BufferEnd;
150 unsigned char *BufferMark;
151 unsigned long BufferLength;
152 unsigned long MemorySize;
153 unsigned char *Memory;
154 int IsClient;
155 int ReuseBuffer;
156 unsigned char *AllocAllNodesMemory;
157 unsigned char *AllocAllNodesMemoryEnd;
158 int IgnoreEmbeddedPointers;
159 unsigned char *PointerBufferMark;
160 unsigned char fBufferValid;
161 unsigned char Unused;
162 ULONG_PTR MaxCount;
163 unsigned long Offset;
164 unsigned long ActualCount;
165 void * (__RPC_API *pfnAllocate)(size_t);
166 void (__RPC_API *pfnFree)(void *);
167 unsigned char *StackTop;
168 unsigned char *pPresentedType;
169 unsigned char *pTransmitType;
170 handle_t SavedHandle;
171 const struct _MIDL_STUB_DESC *StubDesc;
172 struct _FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
173 unsigned long FullPtrRefId;
174 unsigned long ulUnused1;
175 int fInDontFree:1;
176 int fDontCallFreeInst:1;
177 int fInOnlyParam:1;
178 int fHasReturn:1;
179 int fHasExtensions:1;
180 int fHasNewCorrDesc:1;
181 int fUnused:10;
182 unsigned long dwDestContext;
183 void *pvDestContext;
184 NDR_SCONTEXT *SavedContextHandles;
185 long ParamNumber;
186 struct IRpcChannelBuffer *pRpcChannelBuffer;
187 PARRAY_INFO pArrayInfo;
188 unsigned long *SizePtrCountArray;
189 unsigned long *SizePtrOffsetArray;
190 unsigned long *SizePtrLengthArray;
191 void *pArgQueue;
192 unsigned long dwStubPhase;
193 PNDR_PIPE_DESC pPipeDesc;
194 PNDR_ASYNC_MESSAGE pAsyncMsg;
195 PNDR_CORRELATION_INFO pCorrInfo;
196 unsigned char *pCorrMemory;
197 void *pMemoryList;
198 ULONG_PTR w2kReserved[5];
199 } MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
200 #include <poppack.h>
202 typedef struct _GENERIC_BINDING_ROUTINE_PAIR GENERIC_BINDING_ROUTINE_PAIR, *PGENERIC_BINDING_ROUTINE_PAIR;
204 typedef struct __GENERIC_BINDING_INFO GENERIC_BINDING_INFO, *PGENERIC_BINDING_INFO;
206 typedef struct _XMIT_ROUTINE_QUINTUPLE XMIT_ROUTINE_QUINTUPLE, *PXMIT_ROUTINE_QUINTUPLE;
208 typedef unsigned long (__RPC_USER *USER_MARSHAL_SIZING_ROUTINE)(unsigned long *, unsigned long, void *);
209 typedef unsigned char * (__RPC_USER *USER_MARSHAL_MARSHALLING_ROUTINE)(unsigned long *, unsigned char *, void *);
210 typedef unsigned char * (__RPC_USER *USER_MARSHAL_UNMARSHALLING_ROUTINE)(unsigned long *, unsigned char *, void *);
211 typedef void (__RPC_USER *USER_MARSHAL_FREEING_ROUTINE)(unsigned long *, void *);
213 typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE
215 USER_MARSHAL_SIZING_ROUTINE pfnBufferSize;
216 USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall;
217 USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall;
218 USER_MARSHAL_FREEING_ROUTINE pfnFree;
219 } USER_MARSHAL_ROUTINE_QUADRUPLE;
221 typedef struct _MALLOC_FREE_STRUCT MALLOC_FREE_STRUCT;
223 typedef struct _COMM_FAULT_OFFSETS COMM_FAULT_OFFSETS;
225 typedef struct _MIDL_STUB_DESC
227 void *RpcInterfaceInformation;
228 void * (__RPC_API *pfnAllocate)(size_t);
229 void (__RPC_API *pfnFree)(void *);
230 union {
231 handle_t *pAutoHandle;
232 handle_t *pPrimitiveHandle;
233 PGENERIC_BINDING_INFO pGenericBindingInfo;
234 } IMPLICIT_HANDLE_INFO;
235 const NDR_RUNDOWN *apfnNdrRundownRoutines;
236 const GENERIC_BINDING_ROUTINE_PAIR *aGenericBindingRoutinePairs;
237 const EXPR_EVAL *apfnExprEval;
238 const XMIT_ROUTINE_QUINTUPLE *aXmitQuintuple;
239 const unsigned char *pFormatTypes;
240 int fCheckBounds;
241 unsigned long Version;
242 MALLOC_FREE_STRUCT *pMallocFreeStruct;
243 long MIDLVersion;
244 const COMM_FAULT_OFFSETS *CommFaultOffsets;
245 const USER_MARSHAL_ROUTINE_QUADRUPLE *aUserMarshalQuadruple;
246 const NDR_NOTIFY_ROUTINE *NotifyRoutineTable;
247 ULONG_PTR mFlags;
248 ULONG_PTR Reserved3;
249 ULONG_PTR Reserved4;
250 ULONG_PTR Reserved5;
251 } MIDL_STUB_DESC;
252 typedef const MIDL_STUB_DESC *PMIDL_STUB_DESC;
254 typedef struct _MIDL_FORMAT_STRING
256 short Pad;
257 #if defined(__GNUC__)
258 unsigned char Format[0];
259 #else
260 unsigned char Format[1];
261 #endif
262 } MIDL_FORMAT_STRING;
264 typedef void (__RPC_API *STUB_THUNK)( PMIDL_STUB_MESSAGE );
266 typedef long (__RPC_API *SERVER_ROUTINE)();
268 typedef struct _MIDL_SERVER_INFO_
270 PMIDL_STUB_DESC pStubDesc;
271 const SERVER_ROUTINE *DispatchTable;
272 PFORMAT_STRING ProcString;
273 const unsigned short *FmtStringOffset;
274 const STUB_THUNK *ThunkTable;
275 PFORMAT_STRING LocalFormatTypes;
276 PFORMAT_STRING LocalProcString;
277 const unsigned short *LocalFmtStringOffset;
278 } MIDL_SERVER_INFO, *PMIDL_SERVER_INFO;
280 typedef struct _MIDL_STUBLESS_PROXY_INFO
282 PMIDL_STUB_DESC pStubDesc;
283 PFORMAT_STRING ProcFormatString;
284 const unsigned short *FormatStringOffset;
285 PFORMAT_STRING LocalFormatTypes;
286 PFORMAT_STRING LocalProcStrings;
287 const unsigned short *LocalFmtStringOffset;
288 } MIDL_STUBLESS_PROXY_INFO, *PMIDL_STUBLESS_PROXY_INFO;
290 typedef union _CLIENT_CALL_RETURN
292 void *Pointer;
293 LONG_PTR Simple;
294 } CLIENT_CALL_RETURN;
296 typedef enum {
297 STUB_UNMARSHAL,
298 STUB_CALL_SERVER,
299 STUB_MARSHAL,
300 STUB_CALL_SERVER_NO_HRESULT
301 } STUB_PHASE;
303 typedef enum {
304 PROXY_CALCSIZE,
305 PROXY_GETBUFFER,
306 PROXY_MARSHAL,
307 PROXY_SENDRECEIVE,
308 PROXY_UNMARSHAL
309 } PROXY_PHASE;
311 typedef enum {
312 XLAT_SERVER = 1,
313 XLAT_CLIENT
314 } XLAT_SIDE;
316 typedef struct _FULL_PTR_TO_REFID_ELEMENT {
317 struct _FULL_PTR_TO_REFID_ELEMENT *Next;
318 void *Pointer;
319 unsigned long RefId;
320 unsigned char State;
321 } FULL_PTR_TO_REFID_ELEMENT, *PFULL_PTR_TO_REFID_ELEMENT;
323 /* Full pointer translation tables */
324 typedef struct _FULL_PTR_XLAT_TABLES {
325 struct {
326 void **XlatTable;
327 unsigned char *StateTable;
328 unsigned long NumberOfEntries;
329 } RefIdToPointer;
331 struct {
332 PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
333 unsigned long NumberOfBuckets;
334 unsigned long HashMask;
335 } PointerToRefId;
337 unsigned long NextRefId;
338 XLAT_SIDE XlatSide;
339 } FULL_PTR_XLAT_TABLES, *PFULL_PTR_XLAT_TABLES;
341 struct IRpcStubBuffer;
343 typedef unsigned long error_status_t;
344 typedef void * NDR_CCONTEXT;
346 typedef struct _SCONTEXT_QUEUE {
347 unsigned long NumberOfObjects;
348 NDR_SCONTEXT *ArrayOfObjects;
349 } SCONTEXT_QUEUE, *PSCONTEXT_QUEUE;
351 RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
352 NDRCContextBinding( IN NDR_CCONTEXT CContext );
354 RPCRTAPI void RPC_ENTRY
355 NDRCContextMarshall( IN NDR_CCONTEXT CContext, OUT void *pBuff );
357 RPCRTAPI void RPC_ENTRY
358 NDRCContextUnmarshall( OUT NDR_CCONTEXT *pCContext, IN RPC_BINDING_HANDLE hBinding,
359 IN void *pBuff, IN unsigned long DataRepresentation );
361 RPCRTAPI void RPC_ENTRY
362 NDRSContextMarshall( IN NDR_SCONTEXT CContext, OUT void *pBuff, IN NDR_RUNDOWN userRunDownIn );
364 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
365 NDRSContextUnmarshall( IN void *pBuff, IN unsigned long DataRepresentation );
367 RPCRTAPI void RPC_ENTRY
368 NDRSContextMarshallEx( IN RPC_BINDING_HANDLE BindingHandle, IN NDR_SCONTEXT CContext,
369 OUT void *pBuff, IN NDR_RUNDOWN userRunDownIn );
371 RPCRTAPI void RPC_ENTRY
372 NDRSContextMarshall2( IN RPC_BINDING_HANDLE BindingHandle, IN NDR_SCONTEXT CContext,
373 OUT void *pBuff, IN NDR_RUNDOWN userRunDownIn, IN void * CtxGuard,
374 IN unsigned long Flags );
376 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
377 NDRSContextUnmarshallEx( IN RPC_BINDING_HANDLE BindingHandle, IN void *pBuff,
378 IN unsigned long DataRepresentation );
380 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
381 NDRSContextUnmarshall2( IN RPC_BINDING_HANDLE BindingHandle, IN void *pBuff,
382 IN unsigned long DataRepresentation, IN void *CtxGuard,
383 IN unsigned long Flags );
385 RPCRTAPI void RPC_ENTRY
386 RpcSsDestroyClientContext( IN void **ContextHandle );
388 RPCRTAPI void RPC_ENTRY
389 NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
390 RPCRTAPI void RPC_ENTRY
391 NdrSimpleTypeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
393 /* while MS declares each prototype separately, I prefer to use macros for this kind of thing instead */
394 #define SIMPLE_TYPE_MARSHAL(type) \
395 RPCRTAPI unsigned char* RPC_ENTRY \
396 Ndr##type##Marshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
397 RPCRTAPI unsigned char* RPC_ENTRY \
398 Ndr##type##Unmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ); \
399 RPCRTAPI void RPC_ENTRY \
400 Ndr##type##BufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
401 RPCRTAPI unsigned long RPC_ENTRY \
402 Ndr##type##MemorySize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
404 #define TYPE_MARSHAL(type) \
405 SIMPLE_TYPE_MARSHAL(type) \
406 RPCRTAPI void RPC_ENTRY \
407 Ndr##type##Free( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
409 TYPE_MARSHAL(Pointer)
410 TYPE_MARSHAL(SimpleStruct)
411 TYPE_MARSHAL(ConformantStruct)
412 TYPE_MARSHAL(ConformantVaryingStruct)
413 TYPE_MARSHAL(ComplexStruct)
414 TYPE_MARSHAL(FixedArray)
415 TYPE_MARSHAL(ConformantArray)
416 TYPE_MARSHAL(ConformantVaryingArray)
417 TYPE_MARSHAL(VaryingArray)
418 TYPE_MARSHAL(ComplexArray)
419 TYPE_MARSHAL(EncapsulatedUnion)
420 TYPE_MARSHAL(NonEncapsulatedUnion)
421 TYPE_MARSHAL(ByteCountPointer)
422 TYPE_MARSHAL(XmitOrRepAs)
423 TYPE_MARSHAL(UserMarshal)
424 TYPE_MARSHAL(InterfacePointer)
426 SIMPLE_TYPE_MARSHAL(ConformantString)
427 SIMPLE_TYPE_MARSHAL(NonConformantString)
429 #undef TYPE_MARSHAL
430 #undef SIMPLE_TYPE_MARSHAL
432 RPCRTAPI void RPC_ENTRY
433 NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, long NumberParams );
434 RPCRTAPI void RPC_ENTRY
435 NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
437 LONG_PTR RPC_VAR_ENTRY
438 NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
439 LONG_PTR RPC_VAR_ENTRY
440 NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
442 RPCRTAPI void RPC_ENTRY
443 NdrServerCall2( PRPC_MESSAGE pRpcMsg );
444 RPCRTAPI void RPC_ENTRY
445 NdrServerCall( PRPC_MESSAGE pRpcMsg );
447 RPCRTAPI long RPC_ENTRY
448 NdrStubCall2( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, LPDWORD pdwStubPhase );
449 RPCRTAPI long RPC_ENTRY
450 NdrStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, LPDWORD pdwStubPhase );
452 RPCRTAPI void* RPC_ENTRY
453 NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg, size_t Len );
455 RPCRTAPI void RPC_ENTRY
456 NdrClearOutParameters( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, void *ArgAddr );
458 RPCRTAPI void* RPC_ENTRY
459 NdrOleAllocate( size_t Size );
460 RPCRTAPI void RPC_ENTRY
461 NdrOleFree( void* NodeToFree );
463 RPCRTAPI void RPC_ENTRY
464 NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
465 PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
466 RPCRTAPI unsigned char* RPC_ENTRY
467 NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
468 RPCRTAPI unsigned char* RPC_ENTRY
469 NdrGetBuffer( MIDL_STUB_MESSAGE *stubmsg, unsigned long buflen, RPC_BINDING_HANDLE handle );
470 RPCRTAPI void RPC_ENTRY
471 NdrFreeBuffer( MIDL_STUB_MESSAGE *pStubMsg );
472 RPCRTAPI unsigned char* RPC_ENTRY
473 NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char *buffer );
475 RPCRTAPI unsigned char * RPC_ENTRY
476 NdrNsGetBuffer( PMIDL_STUB_MESSAGE pStubMsg, unsigned long BufferLength, RPC_BINDING_HANDLE Handle );
477 RPCRTAPI unsigned char * RPC_ENTRY
478 NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pBufferEnd, RPC_BINDING_HANDLE *pAutoHandle );
480 RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
481 NdrFullPointerXlatInit( unsigned long NumberOfPointers, XLAT_SIDE XlatSide );
482 RPCRTAPI void RPC_ENTRY
483 NdrFullPointerXlatFree( PFULL_PTR_XLAT_TABLES pXlatTables );
484 RPCRTAPI int RPC_ENTRY
485 NdrFullPointerQueryPointer( PFULL_PTR_XLAT_TABLES pXlatTables, void *pPointer,
486 unsigned char QueryType, unsigned long *pRefId );
487 RPCRTAPI int RPC_ENTRY
488 NdrFullPointerQueryRefId( PFULL_PTR_XLAT_TABLES pXlatTables, unsigned long RefId,
489 unsigned char QueryType, void **ppPointer );
490 RPCRTAPI void RPC_ENTRY
491 NdrFullPointerInsertRefId( PFULL_PTR_XLAT_TABLES pXlatTables, unsigned long RefId, void *pPointer );
492 RPCRTAPI int RPC_ENTRY
493 NdrFullPointerFree( PFULL_PTR_XLAT_TABLES pXlatTables, void *Pointer );
495 RPCRTAPI void RPC_ENTRY
496 NdrRpcSsEnableAllocate( PMIDL_STUB_MESSAGE pMessage );
497 RPCRTAPI void RPC_ENTRY
498 NdrRpcSsDisableAllocate( PMIDL_STUB_MESSAGE pMessage );
499 RPCRTAPI void RPC_ENTRY
500 NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage );
501 RPCRTAPI void * RPC_ENTRY
502 NdrRpcSmClientAllocate( IN size_t Size );
503 RPCRTAPI void RPC_ENTRY
504 NdrRpcSmClientFree( IN void *NodeToFree );
505 RPCRTAPI void * RPC_ENTRY
506 NdrRpcSsDefaultAllocate( IN size_t Size );
507 RPCRTAPI void RPC_ENTRY
508 NdrRpcSsDefaultFree( IN void *NodeToFree );
510 #endif /*__WINE_RPCNDR_H */