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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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 void * (__RPC_API
* GENERIC_BINDING_ROUTINE
)(void *);
231 typedef void (__RPC_API
* GENERIC_UNBIND_ROUTINE
)(void *, unsigned char *);
233 typedef struct _GENERIC_BINDING_ROUTINE_PAIR
235 GENERIC_BINDING_ROUTINE pfnBind
;
236 GENERIC_UNBIND_ROUTINE pfnUnbind
;
237 } GENERIC_BINDING_ROUTINE_PAIR
, *PGENERIC_BINDING_ROUTINE_PAIR
;
239 typedef struct __GENERIC_BINDING_INFO
243 GENERIC_BINDING_ROUTINE pfnBind
;
244 GENERIC_UNBIND_ROUTINE pfnUnbind
;
245 } GENERIC_BINDING_INFO
, *PGENERIC_BINDING_INFO
;
247 typedef void (__RPC_USER
*XMIT_HELPER_ROUTINE
)(PMIDL_STUB_MESSAGE
);
249 typedef struct _XMIT_ROUTINE_QUINTUPLE
251 XMIT_HELPER_ROUTINE pfnTranslateToXmit
;
252 XMIT_HELPER_ROUTINE pfnTranslateFromXmit
;
253 XMIT_HELPER_ROUTINE pfnFreeXmit
;
254 XMIT_HELPER_ROUTINE pfnFreeInst
;
255 } XMIT_ROUTINE_QUINTUPLE
, *PXMIT_ROUTINE_QUINTUPLE
;
257 typedef unsigned long (__RPC_USER
*USER_MARSHAL_SIZING_ROUTINE
)(unsigned long *, unsigned long, void *);
258 typedef unsigned char * (__RPC_USER
*USER_MARSHAL_MARSHALLING_ROUTINE
)(unsigned long *, unsigned char *, void *);
259 typedef unsigned char * (__RPC_USER
*USER_MARSHAL_UNMARSHALLING_ROUTINE
)(unsigned long *, unsigned char *, void *);
260 typedef void (__RPC_USER
*USER_MARSHAL_FREEING_ROUTINE
)(unsigned long *, void *);
262 typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE
264 USER_MARSHAL_SIZING_ROUTINE pfnBufferSize
;
265 USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall
;
266 USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall
;
267 USER_MARSHAL_FREEING_ROUTINE pfnFree
;
268 } USER_MARSHAL_ROUTINE_QUADRUPLE
;
271 #define USER_MARSHAL_CB_SIGNATURE \
272 ( (DWORD)'U' | ( (DWORD)'S' << 8 ) | \
273 ( (DWORD)'R' << 16 ) | ( (DWORD)'C' << 24 ) )
277 USER_MARSHAL_CB_BUFFER_SIZE
,
278 USER_MARSHAL_CB_MARSHALL
,
279 USER_MARSHAL_CB_UNMARSHALL
,
281 } USER_MARSHAL_CB_TYPE
;
283 typedef struct _USER_MARSHAL_CB
286 PMIDL_STUB_MESSAGE pStubMsg
;
287 PFORMAT_STRING pReserve
;
288 unsigned long Signature
;
289 USER_MARSHAL_CB_TYPE CBType
;
290 PFORMAT_STRING pFormat
;
291 PFORMAT_STRING pTypeFormat
;
294 #define USER_CALL_CTXT_MASK(f) ((f) & 0x00ff)
295 #define USER_CALL_AUX_MASK(f) ((f) & 0xff00)
296 #define GET_USER_DATA_REP(f) HIWORD(f)
298 #define USER_CALL_IS_ASYNC 0x0100
299 #define USER_CALL_NEW_CORRELATION_DESC 0x0200
301 typedef struct _MALLOC_FREE_STRUCT
303 void * (__RPC_USER
*pfnAllocate
)(size_t);
304 void (__RPC_USER
*pfnFree
)(void *);
305 } MALLOC_FREE_STRUCT
;
307 typedef struct _COMM_FAULT_OFFSETS
311 } COMM_FAULT_OFFSETS
;
313 typedef struct _MIDL_STUB_DESC
315 void *RpcInterfaceInformation
;
316 void * (__RPC_API
*pfnAllocate
)(size_t);
317 void (__RPC_API
*pfnFree
)(void *);
319 handle_t
*pAutoHandle
;
320 handle_t
*pPrimitiveHandle
;
321 PGENERIC_BINDING_INFO pGenericBindingInfo
;
322 } IMPLICIT_HANDLE_INFO
;
323 const NDR_RUNDOWN
*apfnNdrRundownRoutines
;
324 const GENERIC_BINDING_ROUTINE_PAIR
*aGenericBindingRoutinePairs
;
325 const EXPR_EVAL
*apfnExprEval
;
326 const XMIT_ROUTINE_QUINTUPLE
*aXmitQuintuple
;
327 const unsigned char *pFormatTypes
;
329 unsigned long Version
;
330 MALLOC_FREE_STRUCT
*pMallocFreeStruct
;
332 const COMM_FAULT_OFFSETS
*CommFaultOffsets
;
333 const USER_MARSHAL_ROUTINE_QUADRUPLE
*aUserMarshalQuadruple
;
334 const NDR_NOTIFY_ROUTINE
*NotifyRoutineTable
;
340 typedef const MIDL_STUB_DESC
*PMIDL_STUB_DESC
;
342 typedef struct _MIDL_FORMAT_STRING
345 #if defined(__GNUC__)
346 unsigned char Format
[0];
348 unsigned char Format
[1];
350 } MIDL_FORMAT_STRING
;
352 typedef struct _MIDL_SYNTAX_INFO
354 RPC_SYNTAX_IDENTIFIER TransferSyntax
;
355 RPC_DISPATCH_TABLE
* DispatchTable
;
356 PFORMAT_STRING ProcString
;
357 const unsigned short* FmtStringOffset
;
358 PFORMAT_STRING TypeString
;
359 const void* aUserMarshalQuadruple
;
360 ULONG_PTR pReserved1
;
361 ULONG_PTR pReserved2
;
362 } MIDL_SYNTAX_INFO
, *PMIDL_SYNTAX_INFO
;
364 typedef void (__RPC_API
*STUB_THUNK
)( PMIDL_STUB_MESSAGE
);
366 typedef long (__RPC_API
*SERVER_ROUTINE
)();
368 typedef struct _MIDL_SERVER_INFO_
370 PMIDL_STUB_DESC pStubDesc
;
371 const SERVER_ROUTINE
*DispatchTable
;
372 PFORMAT_STRING ProcString
;
373 const unsigned short *FmtStringOffset
;
374 const STUB_THUNK
*ThunkTable
;
375 PRPC_SYNTAX_IDENTIFIER pTransferSyntax
;
377 PMIDL_SYNTAX_INFO pSyntaxInfo
;
378 } MIDL_SERVER_INFO
, *PMIDL_SERVER_INFO
;
380 typedef struct _MIDL_STUBLESS_PROXY_INFO
382 PMIDL_STUB_DESC pStubDesc
;
383 PFORMAT_STRING ProcFormatString
;
384 const unsigned short *FormatStringOffset
;
385 PRPC_SYNTAX_IDENTIFIER pTransferSyntax
;
387 PMIDL_SYNTAX_INFO pSyntaxInfo
;
388 } MIDL_STUBLESS_PROXY_INFO
, *PMIDL_STUBLESS_PROXY_INFO
;
390 typedef union _CLIENT_CALL_RETURN
394 } CLIENT_CALL_RETURN
;
400 STUB_CALL_SERVER_NO_HRESULT
416 typedef struct _FULL_PTR_TO_REFID_ELEMENT
{
417 struct _FULL_PTR_TO_REFID_ELEMENT
*Next
;
421 } FULL_PTR_TO_REFID_ELEMENT
, *PFULL_PTR_TO_REFID_ELEMENT
;
423 /* Full pointer translation tables */
424 typedef struct _FULL_PTR_XLAT_TABLES
{
427 unsigned char *StateTable
;
428 unsigned long NumberOfEntries
;
432 PFULL_PTR_TO_REFID_ELEMENT
*XlatTable
;
433 unsigned long NumberOfBuckets
;
434 unsigned long HashMask
;
437 unsigned long NextRefId
;
439 } FULL_PTR_XLAT_TABLES
, *PFULL_PTR_XLAT_TABLES
;
441 struct IRpcStubBuffer
;
443 typedef unsigned long error_status_t
;
444 typedef void * NDR_CCONTEXT
;
446 typedef struct _SCONTEXT_QUEUE
{
447 unsigned long NumberOfObjects
;
448 NDR_SCONTEXT
*ArrayOfObjects
;
449 } SCONTEXT_QUEUE
, *PSCONTEXT_QUEUE
;
451 /* Context Handles */
453 RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
454 NDRCContextBinding( NDR_CCONTEXT CContext
);
456 RPCRTAPI
void RPC_ENTRY
457 NDRCContextMarshall( NDR_CCONTEXT CContext
, void *pBuff
);
459 RPCRTAPI
void RPC_ENTRY
460 NDRCContextUnmarshall( NDR_CCONTEXT
*pCContext
, RPC_BINDING_HANDLE hBinding
,
461 void *pBuff
, unsigned long DataRepresentation
);
463 RPCRTAPI
void RPC_ENTRY
464 NDRSContextMarshall( NDR_SCONTEXT CContext
, void *pBuff
, NDR_RUNDOWN userRunDownIn
);
466 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
467 NDRSContextUnmarshall( void *pBuff
, unsigned long DataRepresentation
);
469 RPCRTAPI
void RPC_ENTRY
470 NDRSContextMarshallEx( RPC_BINDING_HANDLE BindingHandle
, NDR_SCONTEXT CContext
,
471 void *pBuff
, NDR_RUNDOWN userRunDownIn
);
473 RPCRTAPI
void RPC_ENTRY
474 NDRSContextMarshall2( RPC_BINDING_HANDLE BindingHandle
, NDR_SCONTEXT CContext
,
475 void *pBuff
, NDR_RUNDOWN userRunDownIn
, void * CtxGuard
,
476 unsigned long Flags
);
478 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
479 NDRSContextUnmarshallEx( RPC_BINDING_HANDLE BindingHandle
, void *pBuff
,
480 unsigned long DataRepresentation
);
482 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
483 NDRSContextUnmarshall2( RPC_BINDING_HANDLE BindingHandle
, void *pBuff
,
484 unsigned long DataRepresentation
, void *CtxGuard
,
485 unsigned long Flags
);
487 RPCRTAPI
void RPC_ENTRY
488 NdrClientContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg
, NDR_CCONTEXT ContextHandle
, int fCheck
);
490 RPCRTAPI
void RPC_ENTRY
491 NdrClientContextUnmarshall( PMIDL_STUB_MESSAGE pStubMsg
, NDR_CCONTEXT
* pContextHandle
,
492 RPC_BINDING_HANDLE BindHandle
);
494 RPCRTAPI
void RPC_ENTRY
495 NdrServerContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg
, NDR_SCONTEXT ContextHandle
, NDR_RUNDOWN RundownRoutine
);
497 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
498 NdrServerContextUnmarshall( PMIDL_STUB_MESSAGE pStubMsg
);
500 RPCRTAPI
void RPC_ENTRY
501 NdrContextHandleSize( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char* pMemory
, PFORMAT_STRING pFormat
);
503 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
504 NdrContextHandleInitialize( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
);
506 RPCRTAPI
void RPC_ENTRY
507 NdrServerContextNewMarshall( PMIDL_STUB_MESSAGE pStubMsg
, NDR_SCONTEXT ContextHandle
,
508 NDR_RUNDOWN RundownRoutine
, PFORMAT_STRING pFormat
);
510 RPCRTAPI NDR_SCONTEXT RPC_ENTRY
511 NdrServerContextNewUnmarshall( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
);
513 RPCRTAPI
void RPC_ENTRY
514 RpcSsDestroyClientContext( void **ContextHandle
);
516 RPCRTAPI
void RPC_ENTRY
517 NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char* pMemory
, unsigned char FormatChar
);
518 RPCRTAPI
void RPC_ENTRY
519 NdrSimpleTypeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char* pMemory
, unsigned char FormatChar
);
521 /* while MS declares each prototype separately, I prefer to use macros for this kind of thing instead */
522 #define SIMPLE_TYPE_MARSHAL(type) \
523 RPCRTAPI unsigned char* RPC_ENTRY \
524 Ndr##type##Marshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
525 RPCRTAPI unsigned char* RPC_ENTRY \
526 Ndr##type##Unmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ); \
527 RPCRTAPI void RPC_ENTRY \
528 Ndr##type##BufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
529 RPCRTAPI unsigned long RPC_ENTRY \
530 Ndr##type##MemorySize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
532 #define TYPE_MARSHAL(type) \
533 SIMPLE_TYPE_MARSHAL(type) \
534 RPCRTAPI void RPC_ENTRY \
535 Ndr##type##Free( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
537 TYPE_MARSHAL(Pointer
)
538 TYPE_MARSHAL(SimpleStruct
)
539 TYPE_MARSHAL(ConformantStruct
)
540 TYPE_MARSHAL(ConformantVaryingStruct
)
541 TYPE_MARSHAL(ComplexStruct
)
542 TYPE_MARSHAL(FixedArray
)
543 TYPE_MARSHAL(ConformantArray
)
544 TYPE_MARSHAL(ConformantVaryingArray
)
545 TYPE_MARSHAL(VaryingArray
)
546 TYPE_MARSHAL(ComplexArray
)
547 TYPE_MARSHAL(EncapsulatedUnion
)
548 TYPE_MARSHAL(NonEncapsulatedUnion
)
549 TYPE_MARSHAL(ByteCountPointer
)
550 TYPE_MARSHAL(XmitOrRepAs
)
551 TYPE_MARSHAL(UserMarshal
)
552 TYPE_MARSHAL(InterfacePointer
)
555 SIMPLE_TYPE_MARSHAL(ConformantString
)
556 SIMPLE_TYPE_MARSHAL(NonConformantString
)
559 #undef SIMPLE_TYPE_MARSHAL
561 RPCRTAPI
void RPC_ENTRY
562 NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
, long NumberParams
);
563 RPCRTAPI
void RPC_ENTRY
564 NdrConvert( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
);
566 /* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
567 * returning structures/unions is different between Windows and gcc on i386. */
568 LONG_PTR RPC_VAR_ENTRY
569 NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor
, PFORMAT_STRING pFormat
, ... );
570 LONG_PTR RPC_VAR_ENTRY
571 NdrClientCall( PMIDL_STUB_DESC pStubDescriptor
, PFORMAT_STRING pFormat
, ... );
572 LONG_PTR RPC_VAR_ENTRY
573 NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor
, PFORMAT_STRING pFormat
, ... );
575 RPCRTAPI
void RPC_ENTRY
576 NdrServerCall2( PRPC_MESSAGE pRpcMsg
);
577 RPCRTAPI
void RPC_ENTRY
578 NdrServerCall( PRPC_MESSAGE pRpcMsg
);
580 RPCRTAPI
long RPC_ENTRY
581 NdrStubCall2( struct IRpcStubBuffer
* pThis
, struct IRpcChannelBuffer
* pChannel
, PRPC_MESSAGE pRpcMsg
, unsigned long * pdwStubPhase
);
582 RPCRTAPI
long RPC_ENTRY
583 NdrStubCall( struct IRpcStubBuffer
* pThis
, struct IRpcChannelBuffer
* pChannel
, PRPC_MESSAGE pRpcMsg
, unsigned long * pdwStubPhase
);
584 RPCRTAPI
long RPC_ENTRY
585 NdrAsyncStubCall( struct IRpcStubBuffer
* pThis
, struct IRpcChannelBuffer
* pChannel
, PRPC_MESSAGE pRpcMsg
, unsigned long * pdwStubPhase
);
587 RPCRTAPI
void* RPC_ENTRY
588 NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg
, size_t Len
);
590 RPCRTAPI
void RPC_ENTRY
591 NdrClearOutParameters( PMIDL_STUB_MESSAGE pStubMsg
, PFORMAT_STRING pFormat
, void *ArgAddr
);
593 RPCRTAPI RPC_STATUS RPC_ENTRY
594 NdrMapCommAndFaultStatus( PMIDL_STUB_MESSAGE pStubMsg
, unsigned long *pCommStatus
,
595 unsigned long *pFaultStatus
, RPC_STATUS Status_
);
597 RPCRTAPI
void* RPC_ENTRY
598 NdrOleAllocate( size_t Size
);
599 RPCRTAPI
void RPC_ENTRY
600 NdrOleFree( void* NodeToFree
);
602 RPCRTAPI
void RPC_ENTRY
603 NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage
, PMIDL_STUB_MESSAGE pStubMsg
,
604 PMIDL_STUB_DESC pStubDesc
, unsigned int ProcNum
);
605 RPCRTAPI
unsigned char* RPC_ENTRY
606 NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg
, PMIDL_STUB_MESSAGE pStubMsg
, PMIDL_STUB_DESC pStubDesc
);
607 RPCRTAPI
unsigned char* RPC_ENTRY
608 NdrGetBuffer( MIDL_STUB_MESSAGE
*stubmsg
, unsigned long buflen
, RPC_BINDING_HANDLE handle
);
609 RPCRTAPI
void RPC_ENTRY
610 NdrFreeBuffer( MIDL_STUB_MESSAGE
*pStubMsg
);
611 RPCRTAPI
unsigned char* RPC_ENTRY
612 NdrSendReceive( MIDL_STUB_MESSAGE
*stubmsg
, unsigned char *buffer
);
614 RPCRTAPI
unsigned char * RPC_ENTRY
615 NdrNsGetBuffer( PMIDL_STUB_MESSAGE pStubMsg
, unsigned long BufferLength
, RPC_BINDING_HANDLE Handle
);
616 RPCRTAPI
unsigned char * RPC_ENTRY
617 NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg
, unsigned char *pBufferEnd
, RPC_BINDING_HANDLE
*pAutoHandle
);
619 RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
620 NdrFullPointerXlatInit( unsigned long NumberOfPointers
, XLAT_SIDE XlatSide
);
621 RPCRTAPI
void RPC_ENTRY
622 NdrFullPointerXlatFree( PFULL_PTR_XLAT_TABLES pXlatTables
);
623 RPCRTAPI
int RPC_ENTRY
624 NdrFullPointerQueryPointer( PFULL_PTR_XLAT_TABLES pXlatTables
, void *pPointer
,
625 unsigned char QueryType
, unsigned long *pRefId
);
626 RPCRTAPI
int RPC_ENTRY
627 NdrFullPointerQueryRefId( PFULL_PTR_XLAT_TABLES pXlatTables
, unsigned long RefId
,
628 unsigned char QueryType
, void **ppPointer
);
629 RPCRTAPI
void RPC_ENTRY
630 NdrFullPointerInsertRefId( PFULL_PTR_XLAT_TABLES pXlatTables
, unsigned long RefId
, void *pPointer
);
631 RPCRTAPI
int RPC_ENTRY
632 NdrFullPointerFree( PFULL_PTR_XLAT_TABLES pXlatTables
, void *Pointer
);
634 RPCRTAPI
void RPC_ENTRY
635 NdrRpcSsEnableAllocate( PMIDL_STUB_MESSAGE pMessage
);
636 RPCRTAPI
void RPC_ENTRY
637 NdrRpcSsDisableAllocate( PMIDL_STUB_MESSAGE pMessage
);
638 RPCRTAPI
void RPC_ENTRY
639 NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage
);
640 RPCRTAPI
void * RPC_ENTRY
641 NdrRpcSmClientAllocate( size_t Size
);
642 RPCRTAPI
void RPC_ENTRY
643 NdrRpcSmClientFree( void *NodeToFree
);
644 RPCRTAPI
void * RPC_ENTRY
645 NdrRpcSsDefaultAllocate( size_t Size
);
646 RPCRTAPI
void RPC_ENTRY
647 NdrRpcSsDefaultFree( void *NodeToFree
);
652 #endif /*__WINE_RPCNDR_H */