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 RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
408 NDRCContextBinding( IN NDR_CCONTEXT CContext
);
410 RPCRTAPI
void RPC_ENTRY
411 NDRCContextMarshall( IN NDR_CCONTEXT CContext
, OUT
void *pBuff
);
413 RPCRTAPI
void RPC_ENTRY
414 NDRCContextUnmarshall( OUT NDR_CCONTEXT
*pCContext
, IN RPC_BINDING_HANDLE hBinding
,
415 IN
void *pBuff
, IN
unsigned long DataRepresentation
);
417 RPCRTAPI
void RPC_ENTRY
418 NDRSContextMarshall( IN NDR_SCONTEXT CContext
, OUT
void *pBuff
, IN NDR_RUNDOWN userRunDownIn
);
420 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
421 NDRSContextUnmarshall( IN
void *pBuff
, IN
unsigned long DataRepresentation
);
423 RPCRTAPI
void RPC_ENTRY
424 NDRSContextMarshallEx( IN RPC_BINDING_HANDLE BindingHandle
, IN NDR_SCONTEXT CContext
,
425 OUT
void *pBuff
, IN NDR_RUNDOWN userRunDownIn
);
427 RPCRTAPI
void RPC_ENTRY
428 NDRSContextMarshall2( IN RPC_BINDING_HANDLE BindingHandle
, IN NDR_SCONTEXT CContext
,
429 OUT
void *pBuff
, IN NDR_RUNDOWN userRunDownIn
, IN
void * CtxGuard
,
430 IN
unsigned long Flags
);
432 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
433 NDRSContextUnmarshallEx( IN RPC_BINDING_HANDLE BindingHandle
, IN
void *pBuff
,
434 IN
unsigned long DataRepresentation
);
436 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
437 NDRSContextUnmarshall2( IN RPC_BINDING_HANDLE BindingHandle
, IN
void *pBuff
,
438 IN
unsigned long DataRepresentation
, IN
void *CtxGuard
,
439 IN
unsigned long Flags
);
441 RPCRTAPI
void RPC_ENTRY
442 RpcSsDestroyClientContext( IN
void **ContextHandle
);
444 RPCRTAPI
void RPC_ENTRY
445 NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char* pMemory
, unsigned char FormatChar
);
446 RPCRTAPI
void RPC_ENTRY
447 NdrSimpleTypeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char* pMemory
, unsigned char FormatChar
);
449 /* while MS declares each prototype separately, I prefer to use macros for this kind of thing instead */
450 #define SIMPLE_TYPE_MARSHAL(type) \
451 RPCRTAPI unsigned char* RPC_ENTRY \
452 Ndr##type##Marshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
453 RPCRTAPI unsigned char* RPC_ENTRY \
454 Ndr##type##Unmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ); \
455 RPCRTAPI void RPC_ENTRY \
456 Ndr##type##BufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
457 RPCRTAPI unsigned long RPC_ENTRY \
458 Ndr##type##MemorySize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
460 #define TYPE_MARSHAL(type) \
461 SIMPLE_TYPE_MARSHAL(type) \
462 RPCRTAPI void RPC_ENTRY \
463 Ndr##type##Free( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
465 TYPE_MARSHAL(Pointer
)
466 TYPE_MARSHAL(SimpleStruct
)
467 TYPE_MARSHAL(ConformantStruct
)
468 TYPE_MARSHAL(ConformantVaryingStruct
)
469 TYPE_MARSHAL(ComplexStruct
)
470 TYPE_MARSHAL(FixedArray
)
471 TYPE_MARSHAL(ConformantArray
)
472 TYPE_MARSHAL(ConformantVaryingArray
)
473 TYPE_MARSHAL(VaryingArray
)
474 TYPE_MARSHAL(ComplexArray
)
475 TYPE_MARSHAL(EncapsulatedUnion
)
476 TYPE_MARSHAL(NonEncapsulatedUnion
)
477 TYPE_MARSHAL(ByteCountPointer
)
478 TYPE_MARSHAL(XmitOrRepAs
)
479 TYPE_MARSHAL(UserMarshal
)
480 TYPE_MARSHAL(InterfacePointer
)
482 SIMPLE_TYPE_MARSHAL(ConformantString
)
483 SIMPLE_TYPE_MARSHAL(NonConformantString
)
486 #undef SIMPLE_TYPE_MARSHAL
488 RPCRTAPI
void RPC_ENTRY
489 NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
, long NumberParams
);
490 RPCRTAPI
void RPC_ENTRY
491 NdrConvert( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
);
493 /* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
494 * returning structures/unions is different between Windows and gcc on i386. */
495 LONG_PTR RPC_VAR_ENTRY
496 NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor
, PFORMAT_STRING pFormat
, ... );
497 LONG_PTR RPC_VAR_ENTRY
498 NdrClientCall( PMIDL_STUB_DESC pStubDescriptor
, PFORMAT_STRING pFormat
, ... );
500 RPCRTAPI
void RPC_ENTRY
501 NdrServerCall2( PRPC_MESSAGE pRpcMsg
);
502 RPCRTAPI
void RPC_ENTRY
503 NdrServerCall( PRPC_MESSAGE pRpcMsg
);
505 RPCRTAPI
long RPC_ENTRY
506 NdrStubCall2( struct IRpcStubBuffer
* pThis
, struct IRpcChannelBuffer
* pChannel
, PRPC_MESSAGE pRpcMsg
, unsigned long * pdwStubPhase
);
507 RPCRTAPI
long RPC_ENTRY
508 NdrStubCall( struct IRpcStubBuffer
* pThis
, struct IRpcChannelBuffer
* pChannel
, PRPC_MESSAGE pRpcMsg
, unsigned long * pdwStubPhase
);
510 RPCRTAPI
void* RPC_ENTRY
511 NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg
, size_t Len
);
513 RPCRTAPI
void RPC_ENTRY
514 NdrClearOutParameters( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
, void *ArgAddr
);
516 RPCRTAPI
void* RPC_ENTRY
517 NdrOleAllocate( size_t Size
);
518 RPCRTAPI
void RPC_ENTRY
519 NdrOleFree( void* NodeToFree
);
521 RPCRTAPI
void RPC_ENTRY
522 NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage
, PMIDL_STUB_MESSAGE pStubMsg
,
523 PMIDL_STUB_DESC pStubDesc
, unsigned int ProcNum
);
524 RPCRTAPI
unsigned char* RPC_ENTRY
525 NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg
, PMIDL_STUB_MESSAGE pStubMsg
, PMIDL_STUB_DESC pStubDesc
);
526 RPCRTAPI
unsigned char* RPC_ENTRY
527 NdrGetBuffer( MIDL_STUB_MESSAGE
*stubmsg
, unsigned long buflen
, RPC_BINDING_HANDLE handle
);
528 RPCRTAPI
void RPC_ENTRY
529 NdrFreeBuffer( MIDL_STUB_MESSAGE
*pStubMsg
);
530 RPCRTAPI
unsigned char* RPC_ENTRY
531 NdrSendReceive( MIDL_STUB_MESSAGE
*stubmsg
, unsigned char *buffer
);
533 RPCRTAPI
unsigned char * RPC_ENTRY
534 NdrNsGetBuffer( PMIDL_STUB_MESSAGE pStubMsg
, unsigned long BufferLength
, RPC_BINDING_HANDLE Handle
);
535 RPCRTAPI
unsigned char * RPC_ENTRY
536 NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char *pBufferEnd
, RPC_BINDING_HANDLE
*pAutoHandle
);
538 RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
539 NdrFullPointerXlatInit( unsigned long NumberOfPointers
, XLAT_SIDE XlatSide
);
540 RPCRTAPI
void RPC_ENTRY
541 NdrFullPointerXlatFree( PFULL_PTR_XLAT_TABLES pXlatTables
);
542 RPCRTAPI
int RPC_ENTRY
543 NdrFullPointerQueryPointer( PFULL_PTR_XLAT_TABLES pXlatTables
, void *pPointer
,
544 unsigned char QueryType
, unsigned long *pRefId
);
545 RPCRTAPI
int RPC_ENTRY
546 NdrFullPointerQueryRefId( PFULL_PTR_XLAT_TABLES pXlatTables
, unsigned long RefId
,
547 unsigned char QueryType
, void **ppPointer
);
548 RPCRTAPI
void RPC_ENTRY
549 NdrFullPointerInsertRefId( PFULL_PTR_XLAT_TABLES pXlatTables
, unsigned long RefId
, void *pPointer
);
550 RPCRTAPI
int RPC_ENTRY
551 NdrFullPointerFree( PFULL_PTR_XLAT_TABLES pXlatTables
, void *Pointer
);
553 RPCRTAPI
void RPC_ENTRY
554 NdrRpcSsEnableAllocate( PMIDL_STUB_MESSAGE pMessage
);
555 RPCRTAPI
void RPC_ENTRY
556 NdrRpcSsDisableAllocate( PMIDL_STUB_MESSAGE pMessage
);
557 RPCRTAPI
void RPC_ENTRY
558 NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage
);
559 RPCRTAPI
void * RPC_ENTRY
560 NdrRpcSmClientAllocate( IN
size_t Size
);
561 RPCRTAPI
void RPC_ENTRY
562 NdrRpcSmClientFree( IN
void *NodeToFree
);
563 RPCRTAPI
void * RPC_ENTRY
564 NdrRpcSsDefaultAllocate( IN
size_t Size
);
565 RPCRTAPI
void RPC_ENTRY
566 NdrRpcSsDefaultFree( IN
void *NodeToFree
);
571 #endif /*__WINE_RPCNDR_H */