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 )
24 #ifndef __WINE_RPCNDR_H
25 #define __WINE_RPCNDR_H
33 /* stupid #if can't handle casts... this __stupidity
34 is just a workaround for that limitation */
36 #define __NDR_CHAR_REP_MASK 0x000fL
37 #define __NDR_INT_REP_MASK 0x00f0L
38 #define __NDR_FLOAT_REP_MASK 0xff00L
40 #define __NDR_IEEE_FLOAT 0x0000L
41 #define __NDR_VAX_FLOAT 0x0100L
42 #define __NDR_IBM_FLOAT 0x0300L
44 #define __NDR_ASCII_CHAR 0x0000L
45 #define __NDR_EBCDIC_CHAR 0x0001L
47 #define __NDR_LITTLE_ENDIAN 0x0010L
48 #define __NDR_BIG_ENDIAN 0x0000L
50 /* Mac's are special */
51 #if defined(__RPC_MAC__)
52 # define __NDR_LOCAL_DATA_REPRESENTATION \
53 (__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_BIG_ENDIAN)
55 # define __NDR_LOCAL_DATA_REPRESENTATION \
56 (__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_LITTLE_ENDIAN)
59 #define __NDR_LOCAL_ENDIAN \
60 (__NDR_LOCAL_DATA_REPRESENTATION & __NDR_INT_REP_MASK)
62 /* for convenience, define NDR_LOCAL_IS_BIG_ENDIAN iff it is */
63 #if __NDR_LOCAL_ENDIAN == __NDR_BIG_ENDIAN
64 # define NDR_LOCAL_IS_BIG_ENDIAN
65 #elif __NDR_LOCAL_ENDIAN == __NDR_LITTLE_ENDIAN
66 # undef NDR_LOCAL_IS_BIG_ENDIAN
68 # error alien NDR_LOCAL_ENDIAN - Greg botched the defines again, please report
71 /* finally, do the casts like Microsoft */
73 #define NDR_CHAR_REP_MASK ((unsigned long) __NDR_CHAR_REP_MASK)
74 #define NDR_INT_REP_MASK ((unsigned long) __NDR_INT_REP_MASK)
75 #define NDR_FLOAT_REP_MASK ((unsigned long) __NDR_FLOAT_REP_MASK)
76 #define NDR_IEEE_FLOAT ((unsigned long) __NDR_IEEE_FLOAT)
77 #define NDR_VAX_FLOAT ((unsigned long) __NDR_VAX_FLOAT)
78 #define NDR_IBM_FLOAT ((unsigned long) __NDR_IBM_FLOAT)
79 #define NDR_ASCII_CHAR ((unsigned long) __NDR_ASCII_CHAR)
80 #define NDR_EBCDIC_CHAR ((unsigned long) __NDR_EBCDIC_CHAR)
81 #define NDR_LITTLE_ENDIAN ((unsigned long) __NDR_LITTLE_ENDIAN)
82 #define NDR_BIG_ENDIAN ((unsigned long) __NDR_BIG_ENDIAN)
83 #define NDR_LOCAL_DATA_REPRESENTATION ((unsigned long) __NDR_LOCAL_DATA_REPRESENTATION)
84 #define NDR_LOCAL_ENDIAN ((unsigned long) __NDR_LOCAL_ENDIAN)
87 #define TARGET_IS_NT50_OR_LATER 1
88 #define TARGET_IS_NT40_OR_LATER 1
89 #define TARGET_IS_NT351_OR_WIN95_OR_LATER 1
92 typedef unsigned char byte;
94 #define MIDL_uhyper unsigned __int64
95 /* 'boolean' tend to conflict, let's call it _wine_boolean */
96 typedef unsigned char _wine_boolean;
97 /* typedef _wine_boolean boolean; */
99 #define __RPC_CALLEE WINAPI
100 #define RPC_VAR_ENTRY __cdecl
101 #define NDR_SHAREABLE static
103 #define MIDL_ascii_strlen(s) strlen(s)
104 #define MIDL_ascii_strcpy(d,s) strcpy(d,s)
105 #define MIDL_memset(d,v,n) memset(d,v,n)
106 #define midl_user_free MIDL_user_free
107 #define midl_user_allocate MIDL_user_allocate
109 #define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
110 #define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
111 (unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
119 #define NDRSContextValue(hContext) (&(hContext)->userContext)
120 #define cbNDRContext 20
122 typedef void (__RPC_USER *NDR_RUNDOWN)(void *context);
123 typedef void (__RPC_USER *NDR_NOTIFY_ROUTINE)(void);
124 typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(_wine_boolean flag);
126 #define DECLSPEC_UUID(x)
127 #define MIDL_INTERFACE(x) struct
129 struct _MIDL_STUB_MESSAGE;
130 struct _MIDL_STUB_DESC;
131 struct _FULL_PTR_XLAT_TABLES;
132 struct NDR_ALLOC_ALL_NODES_CONTEXT;
133 struct NDR_POINTER_QUEUE_STATE;
135 typedef void (__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE *);
136 typedef const unsigned char *PFORMAT_STRING;
141 unsigned long *BufferConformanceMark;
142 unsigned long *BufferVarianceMark;
143 unsigned long *MaxCountArray;
144 unsigned long *OffsetArray;
145 unsigned long *ActualCountArray;
146 } ARRAY_INFO, *PARRAY_INFO;
150 unsigned long WireCodeset;
151 unsigned long DesiredReceivingCodeset;
155 typedef struct _NDR_PIPE_DESC *PNDR_PIPE_DESC;
156 typedef struct _NDR_PIPE_MESSAGE *PNDR_PIPE_MESSAGE;
157 typedef struct _NDR_ASYNC_MESSAGE *PNDR_ASYNC_MESSAGE;
158 typedef struct _NDR_CORRELATION_INFO *PNDR_CORRELATION_INFO;
160 #include <pshpack4.h>
161 typedef struct _MIDL_STUB_MESSAGE
164 unsigned char *Buffer;
165 unsigned char *BufferStart;
166 unsigned char *BufferEnd;
167 unsigned char *BufferMark;
168 unsigned long BufferLength;
169 unsigned long MemorySize;
170 unsigned char *Memory;
173 struct NDR_ALLOC_ALL_NODES_CONTEXT *pAllocAllNodesContext;
174 struct NDR_POINTER_QUEUE_STATE *pPointerQueueState;
175 int IgnoreEmbeddedPointers;
176 unsigned char *PointerBufferMark;
177 unsigned char fBufferValid;
178 unsigned char uFlags;
179 unsigned short UniquePtrCount;
181 unsigned long Offset;
182 unsigned long ActualCount;
183 void * (__RPC_API *pfnAllocate)(size_t);
184 void (__RPC_API *pfnFree)(void *);
185 unsigned char *StackTop;
186 unsigned char *pPresentedType;
187 unsigned char *pTransmitType;
188 handle_t SavedHandle;
189 const struct _MIDL_STUB_DESC *StubDesc;
190 struct _FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
191 unsigned long FullPtrRefId;
192 unsigned long PointerLength;
194 int fDontCallFreeInst:1;
197 int fHasExtensions:1;
198 int fHasNewCorrDesc:1;
201 unsigned long dwDestContext;
203 NDR_SCONTEXT *SavedContextHandles;
205 struct IRpcChannelBuffer *pRpcChannelBuffer;
206 PARRAY_INFO pArrayInfo;
207 unsigned long *SizePtrCountArray;
208 unsigned long *SizePtrOffsetArray;
209 unsigned long *SizePtrLengthArray;
211 unsigned long dwStubPhase;
213 PNDR_ASYNC_MESSAGE pAsyncMsg;
214 PNDR_CORRELATION_INFO pCorrInfo;
215 unsigned char *pCorrMemory;
217 CS_STUB_INFO *pCSInfo;
218 unsigned char *ConformanceMark;
219 unsigned char *VarianceMark;
221 struct _NDR_PROC_CONTEXT *pContext;
222 INT_PTR Reserved51_1;
223 INT_PTR Reserved51_2;
224 INT_PTR Reserved51_3;
225 INT_PTR Reserved51_4;
226 INT_PTR Reserved51_5;
227 } MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
230 typedef struct _GENERIC_BINDING_ROUTINE_PAIR GENERIC_BINDING_ROUTINE_PAIR, *PGENERIC_BINDING_ROUTINE_PAIR;
232 typedef struct __GENERIC_BINDING_INFO GENERIC_BINDING_INFO, *PGENERIC_BINDING_INFO;
234 typedef void (__RPC_USER *XMIT_HELPER_ROUTINE)(PMIDL_STUB_MESSAGE);
236 typedef struct _XMIT_ROUTINE_QUINTUPLE
238 XMIT_HELPER_ROUTINE pfnTranslateToXmit;
239 XMIT_HELPER_ROUTINE pfnTranslateFromXmit;
240 XMIT_HELPER_ROUTINE pfnFreeXmit;
241 XMIT_HELPER_ROUTINE pfnFreeInst;
242 } XMIT_ROUTINE_QUINTUPLE, *PXMIT_ROUTINE_QUINTUPLE;
244 typedef unsigned long (__RPC_USER *USER_MARSHAL_SIZING_ROUTINE)(unsigned long *, unsigned long, void *);
245 typedef unsigned char * (__RPC_USER *USER_MARSHAL_MARSHALLING_ROUTINE)(unsigned long *, unsigned char *, void *);
246 typedef unsigned char * (__RPC_USER *USER_MARSHAL_UNMARSHALLING_ROUTINE)(unsigned long *, unsigned char *, void *);
247 typedef void (__RPC_USER *USER_MARSHAL_FREEING_ROUTINE)(unsigned long *, void *);
249 typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE
251 USER_MARSHAL_SIZING_ROUTINE pfnBufferSize;
252 USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall;
253 USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall;
254 USER_MARSHAL_FREEING_ROUTINE pfnFree;
255 } USER_MARSHAL_ROUTINE_QUADRUPLE;
257 typedef struct _MALLOC_FREE_STRUCT
259 void * (__RPC_USER *pfnAllocate)(size_t);
260 void (__RPC_USER *pfnFree)(void *);
261 } MALLOC_FREE_STRUCT;
263 typedef struct _COMM_FAULT_OFFSETS
267 } COMM_FAULT_OFFSETS;
269 typedef struct _MIDL_STUB_DESC
271 void *RpcInterfaceInformation;
272 void * (__RPC_API *pfnAllocate)(size_t);
273 void (__RPC_API *pfnFree)(void *);
275 handle_t *pAutoHandle;
276 handle_t *pPrimitiveHandle;
277 PGENERIC_BINDING_INFO pGenericBindingInfo;
278 } IMPLICIT_HANDLE_INFO;
279 const NDR_RUNDOWN *apfnNdrRundownRoutines;
280 const GENERIC_BINDING_ROUTINE_PAIR *aGenericBindingRoutinePairs;
281 const EXPR_EVAL *apfnExprEval;
282 const XMIT_ROUTINE_QUINTUPLE *aXmitQuintuple;
283 const unsigned char *pFormatTypes;
285 unsigned long Version;
286 MALLOC_FREE_STRUCT *pMallocFreeStruct;
288 const COMM_FAULT_OFFSETS *CommFaultOffsets;
289 const USER_MARSHAL_ROUTINE_QUADRUPLE *aUserMarshalQuadruple;
290 const NDR_NOTIFY_ROUTINE *NotifyRoutineTable;
296 typedef const MIDL_STUB_DESC *PMIDL_STUB_DESC;
298 typedef struct _MIDL_FORMAT_STRING
301 #if defined(__GNUC__)
302 unsigned char Format[0];
304 unsigned char Format[1];
306 } MIDL_FORMAT_STRING;
308 typedef struct _MIDL_SYNTAX_INFO
310 RPC_SYNTAX_IDENTIFIER TransferSyntax;
311 RPC_DISPATCH_TABLE* DispatchTable;
312 PFORMAT_STRING ProcString;
313 const unsigned short* FmtStringOffset;
314 PFORMAT_STRING TypeString;
315 const void* aUserMarshalQuadruple;
316 ULONG_PTR pReserved1;
317 ULONG_PTR pReserved2;
318 } MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
320 typedef void (__RPC_API *STUB_THUNK)( PMIDL_STUB_MESSAGE );
322 typedef long (__RPC_API *SERVER_ROUTINE)();
324 typedef struct _MIDL_SERVER_INFO_
326 PMIDL_STUB_DESC pStubDesc;
327 const SERVER_ROUTINE *DispatchTable;
328 PFORMAT_STRING ProcString;
329 const unsigned short *FmtStringOffset;
330 const STUB_THUNK *ThunkTable;
331 PRPC_SYNTAX_IDENTIFIER pTransferSyntax;
333 PMIDL_SYNTAX_INFO pSyntaxInfo;
334 } MIDL_SERVER_INFO, *PMIDL_SERVER_INFO;
336 typedef struct _MIDL_STUBLESS_PROXY_INFO
338 PMIDL_STUB_DESC pStubDesc;
339 PFORMAT_STRING ProcFormatString;
340 const unsigned short *FormatStringOffset;
341 PRPC_SYNTAX_IDENTIFIER pTransferSyntax;
343 PMIDL_SYNTAX_INFO pSyntaxInfo;
344 } MIDL_STUBLESS_PROXY_INFO, *PMIDL_STUBLESS_PROXY_INFO;
346 typedef union _CLIENT_CALL_RETURN
350 } CLIENT_CALL_RETURN;
356 STUB_CALL_SERVER_NO_HRESULT
372 typedef struct _FULL_PTR_TO_REFID_ELEMENT {
373 struct _FULL_PTR_TO_REFID_ELEMENT *Next;
377 } FULL_PTR_TO_REFID_ELEMENT, *PFULL_PTR_TO_REFID_ELEMENT;
379 /* Full pointer translation tables */
380 typedef struct _FULL_PTR_XLAT_TABLES {
383 unsigned char *StateTable;
384 unsigned long NumberOfEntries;
388 PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
389 unsigned long NumberOfBuckets;
390 unsigned long HashMask;
393 unsigned long NextRefId;
395 } FULL_PTR_XLAT_TABLES, *PFULL_PTR_XLAT_TABLES;
397 struct IRpcStubBuffer;
399 typedef unsigned long error_status_t;
400 typedef void * NDR_CCONTEXT;
402 typedef struct _SCONTEXT_QUEUE {
403 unsigned long NumberOfObjects;
404 NDR_SCONTEXT *ArrayOfObjects;
405 } SCONTEXT_QUEUE, *PSCONTEXT_QUEUE;
407 /* Context Handles */
409 RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
410 NDRCContextBinding( IN NDR_CCONTEXT CContext );
412 RPCRTAPI void RPC_ENTRY
413 NDRCContextMarshall( IN NDR_CCONTEXT CContext, OUT void *pBuff );
415 RPCRTAPI void RPC_ENTRY
416 NDRCContextUnmarshall( OUT NDR_CCONTEXT *pCContext, IN RPC_BINDING_HANDLE hBinding,
417 IN void *pBuff, IN unsigned long DataRepresentation );
419 RPCRTAPI void RPC_ENTRY
420 NDRSContextMarshall( IN NDR_SCONTEXT CContext, OUT void *pBuff, IN NDR_RUNDOWN userRunDownIn );
422 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
423 NDRSContextUnmarshall( IN void *pBuff, IN unsigned long DataRepresentation );
425 RPCRTAPI void RPC_ENTRY
426 NDRSContextMarshallEx( IN RPC_BINDING_HANDLE BindingHandle, IN NDR_SCONTEXT CContext,
427 OUT void *pBuff, IN NDR_RUNDOWN userRunDownIn );
429 RPCRTAPI void RPC_ENTRY
430 NDRSContextMarshall2( IN RPC_BINDING_HANDLE BindingHandle, IN NDR_SCONTEXT CContext,
431 OUT void *pBuff, IN NDR_RUNDOWN userRunDownIn, IN void * CtxGuard,
432 IN unsigned long Flags );
434 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
435 NDRSContextUnmarshallEx( IN RPC_BINDING_HANDLE BindingHandle, IN void *pBuff,
436 IN unsigned long DataRepresentation );
438 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
439 NDRSContextUnmarshall2( IN RPC_BINDING_HANDLE BindingHandle, IN void *pBuff,
440 IN unsigned long DataRepresentation, IN void *CtxGuard,
441 IN unsigned long Flags );
443 RPCRTAPI void RPC_ENTRY
444 NdrClientContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT ContextHandle, int fCheck );
446 RPCRTAPI void RPC_ENTRY
447 NdrClientContextUnmarshall( IN PMIDL_STUB_MESSAGE pStubMsg, OUT NDR_CCONTEXT* pContextHandle,
448 IN RPC_BINDING_HANDLE BindHandle );
450 RPCRTAPI void RPC_ENTRY
451 NdrServerContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle, int fCheck );
453 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
454 NdrServerContextUnmarshall( IN PMIDL_STUB_MESSAGE pStubMsg );
456 RPCRTAPI void RPC_ENTRY
457 NdrContextHandleSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
459 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
460 NdrContextHandleInitialize( IN PMIDL_STUB_MESSAGE pStubMsg, IN PFORMAT_STRING pFormat );
462 RPCRTAPI void RPC_ENTRY
463 NdrServerContextNewMarshall( PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle,
464 NDR_RUNDOWN RundownRoutine, PFORMAT_STRING pFormat );
466 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
467 NdrServerContextNewUnmarshall( IN PMIDL_STUB_MESSAGE pStubMsg, IN PFORMAT_STRING pFormat );
469 RPCRTAPI void RPC_ENTRY
470 RpcSsDestroyClientContext( IN void **ContextHandle );
472 RPCRTAPI void RPC_ENTRY
473 NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
474 RPCRTAPI void RPC_ENTRY
475 NdrSimpleTypeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
477 /* while MS declares each prototype separately, I prefer to use macros for this kind of thing instead */
478 #define SIMPLE_TYPE_MARSHAL(type) \
479 RPCRTAPI unsigned char* RPC_ENTRY \
480 Ndr##type##Marshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
481 RPCRTAPI unsigned char* RPC_ENTRY \
482 Ndr##type##Unmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ); \
483 RPCRTAPI void RPC_ENTRY \
484 Ndr##type##BufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
485 RPCRTAPI unsigned long RPC_ENTRY \
486 Ndr##type##MemorySize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
488 #define TYPE_MARSHAL(type) \
489 SIMPLE_TYPE_MARSHAL(type) \
490 RPCRTAPI void RPC_ENTRY \
491 Ndr##type##Free( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
493 TYPE_MARSHAL(Pointer)
494 TYPE_MARSHAL(SimpleStruct)
495 TYPE_MARSHAL(ConformantStruct)
496 TYPE_MARSHAL(ConformantVaryingStruct)
497 TYPE_MARSHAL(ComplexStruct)
498 TYPE_MARSHAL(FixedArray)
499 TYPE_MARSHAL(ConformantArray)
500 TYPE_MARSHAL(ConformantVaryingArray)
501 TYPE_MARSHAL(VaryingArray)
502 TYPE_MARSHAL(ComplexArray)
503 TYPE_MARSHAL(EncapsulatedUnion)
504 TYPE_MARSHAL(NonEncapsulatedUnion)
505 TYPE_MARSHAL(ByteCountPointer)
506 TYPE_MARSHAL(XmitOrRepAs)
507 TYPE_MARSHAL(UserMarshal)
508 TYPE_MARSHAL(InterfacePointer)
510 SIMPLE_TYPE_MARSHAL(ConformantString)
511 SIMPLE_TYPE_MARSHAL(NonConformantString)
514 #undef SIMPLE_TYPE_MARSHAL
516 RPCRTAPI void RPC_ENTRY
517 NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, long NumberParams );
518 RPCRTAPI void RPC_ENTRY
519 NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
521 /* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
522 * returning structures/unions is different between Windows and gcc on i386. */
523 LONG_PTR RPC_VAR_ENTRY
524 NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
525 LONG_PTR RPC_VAR_ENTRY
526 NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
528 RPCRTAPI void RPC_ENTRY
529 NdrServerCall2( PRPC_MESSAGE pRpcMsg );
530 RPCRTAPI void RPC_ENTRY
531 NdrServerCall( PRPC_MESSAGE pRpcMsg );
533 RPCRTAPI long RPC_ENTRY
534 NdrStubCall2( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, unsigned long * pdwStubPhase );
535 RPCRTAPI long RPC_ENTRY
536 NdrStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, unsigned long * pdwStubPhase );
538 RPCRTAPI void* RPC_ENTRY
539 NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg, size_t Len );
541 RPCRTAPI void RPC_ENTRY
542 NdrClearOutParameters( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, void *ArgAddr );
544 RPCRTAPI RPC_STATUS RPC_ENTRY
545 NdrMapCommAndFaultStatus( PMIDL_STUB_MESSAGE pStubMsg, unsigned long *pCommStatus,
546 unsigned long *pFaultStatus, RPC_STATUS Status_ );
548 RPCRTAPI void* RPC_ENTRY
549 NdrOleAllocate( size_t Size );
550 RPCRTAPI void RPC_ENTRY
551 NdrOleFree( void* NodeToFree );
553 RPCRTAPI void RPC_ENTRY
554 NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
555 PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
556 RPCRTAPI unsigned char* RPC_ENTRY
557 NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
558 RPCRTAPI unsigned char* RPC_ENTRY
559 NdrGetBuffer( MIDL_STUB_MESSAGE *stubmsg, unsigned long buflen, RPC_BINDING_HANDLE handle );
560 RPCRTAPI void RPC_ENTRY
561 NdrFreeBuffer( MIDL_STUB_MESSAGE *pStubMsg );
562 RPCRTAPI unsigned char* RPC_ENTRY
563 NdrSendReceive( MIDL_STUB_MESSAGE *stubmsg, unsigned char *buffer );
565 RPCRTAPI unsigned char * RPC_ENTRY
566 NdrNsGetBuffer( PMIDL_STUB_MESSAGE pStubMsg, unsigned long BufferLength, RPC_BINDING_HANDLE Handle );
567 RPCRTAPI unsigned char * RPC_ENTRY
568 NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pBufferEnd, RPC_BINDING_HANDLE *pAutoHandle );
570 RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
571 NdrFullPointerXlatInit( unsigned long NumberOfPointers, XLAT_SIDE XlatSide );
572 RPCRTAPI void RPC_ENTRY
573 NdrFullPointerXlatFree( PFULL_PTR_XLAT_TABLES pXlatTables );
574 RPCRTAPI int RPC_ENTRY
575 NdrFullPointerQueryPointer( PFULL_PTR_XLAT_TABLES pXlatTables, void *pPointer,
576 unsigned char QueryType, unsigned long *pRefId );
577 RPCRTAPI int RPC_ENTRY
578 NdrFullPointerQueryRefId( PFULL_PTR_XLAT_TABLES pXlatTables, unsigned long RefId,
579 unsigned char QueryType, void **ppPointer );
580 RPCRTAPI void RPC_ENTRY
581 NdrFullPointerInsertRefId( PFULL_PTR_XLAT_TABLES pXlatTables, unsigned long RefId, void *pPointer );
582 RPCRTAPI int RPC_ENTRY
583 NdrFullPointerFree( PFULL_PTR_XLAT_TABLES pXlatTables, void *Pointer );
585 RPCRTAPI void RPC_ENTRY
586 NdrRpcSsEnableAllocate( PMIDL_STUB_MESSAGE pMessage );
587 RPCRTAPI void RPC_ENTRY
588 NdrRpcSsDisableAllocate( PMIDL_STUB_MESSAGE pMessage );
589 RPCRTAPI void RPC_ENTRY
590 NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage );
591 RPCRTAPI void * RPC_ENTRY
592 NdrRpcSmClientAllocate( IN size_t Size );
593 RPCRTAPI void RPC_ENTRY
594 NdrRpcSmClientFree( IN void *NodeToFree );
595 RPCRTAPI void * RPC_ENTRY
596 NdrRpcSsDefaultAllocate( IN size_t Size );
597 RPCRTAPI void RPC_ENTRY
598 NdrRpcSsDefaultFree( IN void *NodeToFree );
603 #endif /*__WINE_RPCNDR_H */