VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/rpcndr.h@ 53201

最後變更 在這個檔案從53201是 53201,由 vboxsync 提交於 10 年 前

Devices/Main: vmsvga updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 25.8 KB
 
1/*
2 * Copyright (C) 2000 Francois Gouget
3 *
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.
8 *
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.
13 *
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
17 */
18
19#ifndef __RPCNDR_H_VERSION__
20#define __RPCNDR_H_VERSION__ ( 500 )
21#endif
22
23#ifndef __WINE_RPCNDR_H
24#define __WINE_RPCNDR_H
25
26#include <basetsd.h>
27#include <rpcsal.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
33#undef CONST_VTBL
34#ifdef CONST_VTABLE
35# define CONST_VTBL const
36#else
37# define CONST_VTBL
38#endif
39
40#ifdef __cplusplus
41#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
42 EXTERN_C const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
43 EXTERN_C const GUID DECLSPEC_SELECTANY name = \
44 { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
45#else
46#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
47 const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
48 const GUID DECLSPEC_SELECTANY name = \
49 { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
50#endif
51
52/* stupid #if can't handle casts... this __stupidity
53 is just a workaround for that limitation */
54
55#define __NDR_CHAR_REP_MASK 0x000f
56#define __NDR_INT_REP_MASK 0x00f0
57#define __NDR_FLOAT_REP_MASK 0xff00
58
59#define __NDR_IEEE_FLOAT 0x0000
60#define __NDR_VAX_FLOAT 0x0100
61#define __NDR_IBM_FLOAT 0x0300
62
63#define __NDR_ASCII_CHAR 0x0000
64#define __NDR_EBCDIC_CHAR 0x0001
65
66#define __NDR_LITTLE_ENDIAN 0x0010
67#define __NDR_BIG_ENDIAN 0x0000
68
69/* Mac's are special */
70#if defined(__RPC_MAC__)
71# define __NDR_LOCAL_DATA_REPRESENTATION \
72 (__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_BIG_ENDIAN)
73#else
74# define __NDR_LOCAL_DATA_REPRESENTATION \
75 (__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_LITTLE_ENDIAN)
76#endif
77
78#define __NDR_LOCAL_ENDIAN \
79 (__NDR_LOCAL_DATA_REPRESENTATION & __NDR_INT_REP_MASK)
80
81/* for convenience, define NDR_LOCAL_IS_BIG_ENDIAN iff it is */
82#if __NDR_LOCAL_ENDIAN == __NDR_BIG_ENDIAN
83# define NDR_LOCAL_IS_BIG_ENDIAN
84#elif __NDR_LOCAL_ENDIAN == __NDR_LITTLE_ENDIAN
85# undef NDR_LOCAL_IS_BIG_ENDIAN
86#else
87# error alien NDR_LOCAL_ENDIAN - Greg botched the defines again, please report
88#endif
89
90/* finally, do the casts like Microsoft */
91
92#define NDR_CHAR_REP_MASK ((ULONG) __NDR_CHAR_REP_MASK)
93#define NDR_INT_REP_MASK ((ULONG) __NDR_INT_REP_MASK)
94#define NDR_FLOAT_REP_MASK ((ULONG) __NDR_FLOAT_REP_MASK)
95#define NDR_IEEE_FLOAT ((ULONG) __NDR_IEEE_FLOAT)
96#define NDR_VAX_FLOAT ((ULONG) __NDR_VAX_FLOAT)
97#define NDR_IBM_FLOAT ((ULONG) __NDR_IBM_FLOAT)
98#define NDR_ASCII_CHAR ((ULONG) __NDR_ASCII_CHAR)
99#define NDR_EBCDIC_CHAR ((ULONG) __NDR_EBCDIC_CHAR)
100#define NDR_LITTLE_ENDIAN ((ULONG) __NDR_LITTLE_ENDIAN)
101#define NDR_BIG_ENDIAN ((ULONG) __NDR_BIG_ENDIAN)
102#define NDR_LOCAL_DATA_REPRESENTATION ((ULONG) __NDR_LOCAL_DATA_REPRESENTATION)
103#define NDR_LOCAL_ENDIAN ((ULONG) __NDR_LOCAL_ENDIAN)
104
105
106#define TARGET_IS_NT50_OR_LATER 1
107#define TARGET_IS_NT40_OR_LATER 1
108#define TARGET_IS_NT351_OR_WIN95_OR_LATER 1
109
110#define small char
111typedef unsigned char byte;
112typedef INT64 hyper;
113typedef UINT64 MIDL_uhyper;
114typedef unsigned char boolean;
115
116#define __RPC_CALLEE WINAPI
117#define RPC_VAR_ENTRY __cdecl
118#define NDR_SHAREABLE static
119
120#define MIDL_ascii_strlen(s) strlen(s)
121#define MIDL_ascii_strcpy(d,s) strcpy(d,s)
122#define MIDL_memset(d,v,n) memset(d,v,n)
123#define midl_user_free MIDL_user_free
124#define midl_user_allocate MIDL_user_allocate
125
126void * __RPC_USER MIDL_user_allocate(SIZE_T);
127void __RPC_USER MIDL_user_free(void *);
128
129#define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
130#define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
131 (unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
132
133#define RPC_BAD_STUB_DATA_EXCEPTION_FILTER \
134 ((RpcExceptionCode() == STATUS_ACCESS_VIOLATION) || \
135 (RpcExceptionCode() == STATUS_DATATYPE_MISALIGNMENT) || \
136 (RpcExceptionCode() == RPC_X_BAD_STUB_DATA) || \
137 (RpcExceptionCode() == RPC_S_INVALID_BOUND))
138
139typedef struct
140{
141 void *pad[2];
142 void *userContext;
143} *NDR_SCONTEXT;
144
145#define NDRSContextValue(hContext) (&(hContext)->userContext)
146#define cbNDRContext 20
147
148typedef void (__RPC_USER *NDR_RUNDOWN)(void *context);
149typedef void (__RPC_USER *NDR_NOTIFY_ROUTINE)(void);
150typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(boolean flag);
151
152#define DECLSPEC_UUID(x)
153#define MIDL_INTERFACE(x) struct
154
155struct _MIDL_STUB_MESSAGE;
156struct _MIDL_STUB_DESC;
157struct _FULL_PTR_XLAT_TABLES;
158struct NDR_ALLOC_ALL_NODES_CONTEXT;
159struct NDR_POINTER_QUEUE_STATE;
160
161typedef unsigned char *RPC_BUFPTR;
162typedef ULONG RPC_LENGTH;
163typedef void (__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE *);
164typedef const unsigned char *PFORMAT_STRING;
165
166typedef struct
167{
168 LONG Dimension;
169 ULONG *BufferConformanceMark;
170 ULONG *BufferVarianceMark;
171 ULONG *MaxCountArray;
172 ULONG *OffsetArray;
173 ULONG *ActualCountArray;
174} ARRAY_INFO, *PARRAY_INFO;
175
176typedef struct
177{
178 ULONG WireCodeset;
179 ULONG DesiredReceivingCodeset;
180 void *CSArrayInfo;
181} CS_STUB_INFO;
182
183typedef struct _NDR_PIPE_DESC *PNDR_PIPE_DESC;
184typedef struct _NDR_PIPE_MESSAGE *PNDR_PIPE_MESSAGE;
185typedef struct _NDR_ASYNC_MESSAGE *PNDR_ASYNC_MESSAGE;
186typedef struct _NDR_CORRELATION_INFO *PNDR_CORRELATION_INFO;
187
188typedef struct _MIDL_STUB_MESSAGE
189{
190 PRPC_MESSAGE RpcMsg;
191 unsigned char *Buffer;
192 unsigned char *BufferStart;
193 unsigned char *BufferEnd;
194 unsigned char *BufferMark;
195 ULONG BufferLength;
196 ULONG MemorySize;
197 unsigned char *Memory;
198 unsigned char IsClient;
199 unsigned char Pad;
200 unsigned short uFlags2;
201 int ReuseBuffer;
202 struct NDR_ALLOC_ALL_NODES_CONTEXT *pAllocAllNodesContext;
203 struct NDR_POINTER_QUEUE_STATE *pPointerQueueState;
204 int IgnoreEmbeddedPointers;
205 unsigned char *PointerBufferMark;
206 unsigned char CorrDespIncrement;
207 unsigned char uFlags;
208 unsigned short UniquePtrCount;
209 ULONG_PTR MaxCount;
210 ULONG Offset;
211 ULONG ActualCount;
212 void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(SIZE_T);
213 void (__RPC_API *pfnFree)(void *);
214 unsigned char *StackTop;
215 unsigned char *pPresentedType;
216 unsigned char *pTransmitType;
217 handle_t SavedHandle;
218 const struct _MIDL_STUB_DESC *StubDesc;
219 struct _FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
220 ULONG FullPtrRefId;
221 ULONG PointerLength;
222 unsigned int fInDontFree:1;
223 unsigned int fDontCallFreeInst:1;
224 unsigned int fInOnlyParam:1;
225 unsigned int fHasReturn:1;
226 unsigned int fHasExtensions:1;
227 unsigned int fHasNewCorrDesc:1;
228 unsigned int fIsIn:1;
229 unsigned int fIsOut:1;
230 unsigned int fIsOicf:1;
231 unsigned int fBufferValid:1;
232 unsigned int fHasMemoryValidateCallback:1;
233 unsigned int fInFree:1;
234 unsigned int fNeedMCCP:1;
235 int fUnused:3;
236 int fUnused2:16;
237 DWORD dwDestContext;
238 void *pvDestContext;
239 NDR_SCONTEXT *SavedContextHandles;
240 LONG ParamNumber;
241 struct IRpcChannelBuffer *pRpcChannelBuffer;
242 PARRAY_INFO pArrayInfo;
243 ULONG *SizePtrCountArray;
244 ULONG *SizePtrOffsetArray;
245 ULONG *SizePtrLengthArray;
246 void *pArgQueue;
247 DWORD dwStubPhase;
248 void *LowStackMark;
249 PNDR_ASYNC_MESSAGE pAsyncMsg;
250 PNDR_CORRELATION_INFO pCorrInfo;
251 unsigned char *pCorrMemory;
252 void *pMemoryList;
253 CS_STUB_INFO *pCSInfo;
254 unsigned char *ConformanceMark;
255 unsigned char *VarianceMark;
256 INT_PTR Unused; /* BackingStoreLowMark on IA64 */
257 struct _NDR_PROC_CONTEXT *pContext;
258 void* ContextHandleHash;
259 void* pUserMarshalList;
260 INT_PTR Reserved51_3;
261 INT_PTR Reserved51_4;
262 INT_PTR Reserved51_5;
263} MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
264
265typedef void * (__RPC_API * GENERIC_BINDING_ROUTINE)(void *);
266typedef void (__RPC_API * GENERIC_UNBIND_ROUTINE)(void *, unsigned char *);
267
268typedef struct _GENERIC_BINDING_ROUTINE_PAIR
269{
270 GENERIC_BINDING_ROUTINE pfnBind;
271 GENERIC_UNBIND_ROUTINE pfnUnbind;
272} GENERIC_BINDING_ROUTINE_PAIR, *PGENERIC_BINDING_ROUTINE_PAIR;
273
274typedef struct __GENERIC_BINDING_INFO
275{
276 void *pObj;
277 unsigned int Size;
278 GENERIC_BINDING_ROUTINE pfnBind;
279 GENERIC_UNBIND_ROUTINE pfnUnbind;
280} GENERIC_BINDING_INFO, *PGENERIC_BINDING_INFO;
281
282typedef void (__RPC_USER *XMIT_HELPER_ROUTINE)(PMIDL_STUB_MESSAGE);
283
284typedef struct _XMIT_ROUTINE_QUINTUPLE
285{
286 XMIT_HELPER_ROUTINE pfnTranslateToXmit;
287 XMIT_HELPER_ROUTINE pfnTranslateFromXmit;
288 XMIT_HELPER_ROUTINE pfnFreeXmit;
289 XMIT_HELPER_ROUTINE pfnFreeInst;
290} XMIT_ROUTINE_QUINTUPLE, *PXMIT_ROUTINE_QUINTUPLE;
291
292typedef ULONG (__RPC_USER *USER_MARSHAL_SIZING_ROUTINE)(ULONG *, ULONG, void *);
293typedef unsigned char * (__RPC_USER *USER_MARSHAL_MARSHALLING_ROUTINE)(ULONG *, unsigned char *, void *);
294typedef unsigned char * (__RPC_USER *USER_MARSHAL_UNMARSHALLING_ROUTINE)(ULONG *, unsigned char *, void *);
295typedef void (__RPC_USER *USER_MARSHAL_FREEING_ROUTINE)(ULONG *, void *);
296
297typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE
298{
299 USER_MARSHAL_SIZING_ROUTINE pfnBufferSize;
300 USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall;
301 USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall;
302 USER_MARSHAL_FREEING_ROUTINE pfnFree;
303} USER_MARSHAL_ROUTINE_QUADRUPLE;
304
305/* 'USRC' */
306#define USER_MARSHAL_CB_SIGNATURE \
307 ( ( (DWORD)'U' << 24 ) | ( (DWORD)'S' << 16 ) | \
308 ( (DWORD)'R' << 8 ) | ( (DWORD)'C' ) )
309
310typedef enum
311{
312 USER_MARSHAL_CB_BUFFER_SIZE,
313 USER_MARSHAL_CB_MARSHALL,
314 USER_MARSHAL_CB_UNMARSHALL,
315 USER_MARSHAL_CB_FREE
316} USER_MARSHAL_CB_TYPE;
317
318typedef struct _USER_MARSHAL_CB
319{
320 ULONG Flags;
321 PMIDL_STUB_MESSAGE pStubMsg;
322 PFORMAT_STRING pReserve;
323 ULONG Signature;
324 USER_MARSHAL_CB_TYPE CBType;
325 PFORMAT_STRING pFormat;
326 PFORMAT_STRING pTypeFormat;
327} USER_MARSHAL_CB;
328
329#define USER_CALL_CTXT_MASK(f) ((f) & 0x00ff)
330#define USER_CALL_AUX_MASK(f) ((f) & 0xff00)
331#define GET_USER_DATA_REP(f) HIWORD(f)
332
333#define USER_CALL_IS_ASYNC 0x0100
334#define USER_CALL_NEW_CORRELATION_DESC 0x0200
335
336typedef struct _MALLOC_FREE_STRUCT
337{
338 void * (__WINE_ALLOC_SIZE(1) __RPC_USER *pfnAllocate)(SIZE_T);
339 void (__RPC_USER *pfnFree)(void *);
340} MALLOC_FREE_STRUCT;
341
342typedef struct _COMM_FAULT_OFFSETS
343{
344 short CommOffset;
345 short FaultOffset;
346} COMM_FAULT_OFFSETS;
347
348typedef struct _MIDL_STUB_DESC
349{
350 void *RpcInterfaceInformation;
351 void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(SIZE_T);
352 void (__RPC_API *pfnFree)(void *);
353 union {
354 handle_t *pAutoHandle;
355 handle_t *pPrimitiveHandle;
356 PGENERIC_BINDING_INFO pGenericBindingInfo;
357 } IMPLICIT_HANDLE_INFO;
358 const NDR_RUNDOWN *apfnNdrRundownRoutines;
359 const GENERIC_BINDING_ROUTINE_PAIR *aGenericBindingRoutinePairs;
360 const EXPR_EVAL *apfnExprEval;
361 const XMIT_ROUTINE_QUINTUPLE *aXmitQuintuple;
362 const unsigned char *pFormatTypes;
363 int fCheckBounds;
364 ULONG Version;
365 MALLOC_FREE_STRUCT *pMallocFreeStruct;
366 LONG MIDLVersion;
367 const COMM_FAULT_OFFSETS *CommFaultOffsets;
368 const USER_MARSHAL_ROUTINE_QUADRUPLE *aUserMarshalQuadruple;
369 const NDR_NOTIFY_ROUTINE *NotifyRoutineTable;
370 ULONG_PTR mFlags;
371 ULONG_PTR Reserved3;
372 ULONG_PTR Reserved4;
373 ULONG_PTR Reserved5;
374} MIDL_STUB_DESC;
375typedef const MIDL_STUB_DESC *PMIDL_STUB_DESC;
376
377typedef struct _MIDL_FORMAT_STRING
378{
379 short Pad;
380#if defined(__GNUC__)
381 unsigned char Format[0];
382#else
383 unsigned char Format[1];
384#endif
385} MIDL_FORMAT_STRING;
386
387typedef struct _MIDL_SYNTAX_INFO
388{
389 RPC_SYNTAX_IDENTIFIER TransferSyntax;
390 RPC_DISPATCH_TABLE* DispatchTable;
391 PFORMAT_STRING ProcString;
392 const unsigned short* FmtStringOffset;
393 PFORMAT_STRING TypeString;
394 const void* aUserMarshalQuadruple;
395 ULONG_PTR pReserved1;
396 ULONG_PTR pReserved2;
397} MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
398
399typedef void (__RPC_API *STUB_THUNK)( PMIDL_STUB_MESSAGE );
400
401#ifdef WINE_STRICT_PROTOTYPES
402typedef LONG (__RPC_API *SERVER_ROUTINE)(void);
403#else
404typedef LONG (__RPC_API *SERVER_ROUTINE)();
405#endif
406
407typedef struct _MIDL_SERVER_INFO_
408{
409 PMIDL_STUB_DESC pStubDesc;
410 const SERVER_ROUTINE *DispatchTable;
411 PFORMAT_STRING ProcString;
412 const unsigned short *FmtStringOffset;
413 const STUB_THUNK *ThunkTable;
414 PRPC_SYNTAX_IDENTIFIER pTransferSyntax;
415 ULONG_PTR nCount;
416 PMIDL_SYNTAX_INFO pSyntaxInfo;
417} MIDL_SERVER_INFO, *PMIDL_SERVER_INFO;
418
419typedef struct _MIDL_STUBLESS_PROXY_INFO
420{
421 PMIDL_STUB_DESC pStubDesc;
422 PFORMAT_STRING ProcFormatString;
423 const unsigned short *FormatStringOffset;
424 PRPC_SYNTAX_IDENTIFIER pTransferSyntax;
425 ULONG_PTR nCount;
426 PMIDL_SYNTAX_INFO pSyntaxInfo;
427} MIDL_STUBLESS_PROXY_INFO, *PMIDL_STUBLESS_PROXY_INFO;
428
429
430#if defined(__i386__) && !defined(__MSC_VER) && !defined(__MINGW32__) && !defined(__CYGWIN__)
431/* Calling convention for returning structures/unions is different between Windows and gcc on i386 */
432typedef LONG_PTR CLIENT_CALL_RETURN;
433#else
434typedef union _CLIENT_CALL_RETURN
435{
436 void *Pointer;
437 LONG_PTR Simple;
438} CLIENT_CALL_RETURN;
439#endif
440
441typedef enum {
442 STUB_UNMARSHAL,
443 STUB_CALL_SERVER,
444 STUB_MARSHAL,
445 STUB_CALL_SERVER_NO_HRESULT
446} STUB_PHASE;
447
448typedef enum {
449 PROXY_CALCSIZE,
450 PROXY_GETBUFFER,
451 PROXY_MARSHAL,
452 PROXY_SENDRECEIVE,
453 PROXY_UNMARSHAL
454} PROXY_PHASE;
455
456typedef enum {
457 XLAT_SERVER = 1,
458 XLAT_CLIENT
459} XLAT_SIDE;
460
461typedef struct _FULL_PTR_TO_REFID_ELEMENT {
462 struct _FULL_PTR_TO_REFID_ELEMENT *Next;
463 void *Pointer;
464 ULONG RefId;
465 unsigned char State;
466} FULL_PTR_TO_REFID_ELEMENT, *PFULL_PTR_TO_REFID_ELEMENT;
467
468/* Full pointer translation tables */
469typedef struct _FULL_PTR_XLAT_TABLES {
470 struct {
471 void **XlatTable;
472 unsigned char *StateTable;
473 ULONG NumberOfEntries;
474 } RefIdToPointer;
475
476 struct {
477 PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
478 ULONG NumberOfBuckets;
479 ULONG HashMask;
480 } PointerToRefId;
481
482 ULONG NextRefId;
483 XLAT_SIDE XlatSide;
484} FULL_PTR_XLAT_TABLES, *PFULL_PTR_XLAT_TABLES;
485
486struct IRpcStubBuffer;
487
488typedef ULONG error_status_t;
489typedef void * NDR_CCONTEXT;
490
491typedef struct _SCONTEXT_QUEUE {
492 ULONG NumberOfObjects;
493 NDR_SCONTEXT *ArrayOfObjects;
494} SCONTEXT_QUEUE, *PSCONTEXT_QUEUE;
495
496typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1
497{
498 void *Buffer;
499 ULONG BufferSize;
500 void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(SIZE_T);
501 void (__RPC_API *pfnFree)(void *);
502 struct IRpcChannelBuffer *pRpcChannelBuffer;
503 ULONG_PTR Reserved[5];
504} NDR_USER_MARSHAL_INFO_LEVEL1;
505
506typedef struct _NDR_USER_MARSHAL_INFO
507{
508 ULONG InformationLevel;
509 union
510 {
511 NDR_USER_MARSHAL_INFO_LEVEL1 Level1;
512 } DUMMYUNIONNAME1;
513} NDR_USER_MARSHAL_INFO;
514
515/* Context Handles */
516
517RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
518 NDRCContextBinding( NDR_CCONTEXT CContext );
519
520RPCRTAPI void RPC_ENTRY
521 NDRCContextMarshall( NDR_CCONTEXT CContext, void *pBuff );
522
523RPCRTAPI void RPC_ENTRY
524 NDRCContextUnmarshall( NDR_CCONTEXT *pCContext, RPC_BINDING_HANDLE hBinding,
525 void *pBuff, ULONG DataRepresentation );
526
527RPCRTAPI void RPC_ENTRY
528 NDRSContextMarshall( NDR_SCONTEXT CContext, void *pBuff, NDR_RUNDOWN userRunDownIn );
529
530RPCRTAPI NDR_SCONTEXT RPC_ENTRY
531 NDRSContextUnmarshall( void *pBuff, ULONG DataRepresentation );
532
533RPCRTAPI void RPC_ENTRY
534 NDRSContextMarshallEx( RPC_BINDING_HANDLE BindingHandle, NDR_SCONTEXT CContext,
535 void *pBuff, NDR_RUNDOWN userRunDownIn );
536
537RPCRTAPI void RPC_ENTRY
538 NDRSContextMarshall2( RPC_BINDING_HANDLE BindingHandle, NDR_SCONTEXT CContext,
539 void *pBuff, NDR_RUNDOWN userRunDownIn, void * CtxGuard,
540 ULONG Flags );
541
542RPCRTAPI NDR_SCONTEXT RPC_ENTRY
543 NDRSContextUnmarshallEx( RPC_BINDING_HANDLE BindingHandle, void *pBuff,
544 ULONG DataRepresentation );
545
546RPCRTAPI NDR_SCONTEXT RPC_ENTRY
547 NDRSContextUnmarshall2( RPC_BINDING_HANDLE BindingHandle, void *pBuff,
548 ULONG DataRepresentation, void *CtxGuard,
549 ULONG Flags );
550
551RPCRTAPI void RPC_ENTRY
552 NdrClientContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT ContextHandle, int fCheck );
553
554RPCRTAPI void RPC_ENTRY
555 NdrClientContextUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT* pContextHandle,
556 RPC_BINDING_HANDLE BindHandle );
557
558RPCRTAPI void RPC_ENTRY
559 NdrServerContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle, NDR_RUNDOWN RundownRoutine );
560
561RPCRTAPI NDR_SCONTEXT RPC_ENTRY
562 NdrServerContextUnmarshall( PMIDL_STUB_MESSAGE pStubMsg );
563
564RPCRTAPI void RPC_ENTRY
565 NdrContextHandleSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
566
567RPCRTAPI NDR_SCONTEXT RPC_ENTRY
568 NdrContextHandleInitialize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
569
570RPCRTAPI void RPC_ENTRY
571 NdrServerContextNewMarshall( PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle,
572 NDR_RUNDOWN RundownRoutine, PFORMAT_STRING pFormat );
573
574RPCRTAPI NDR_SCONTEXT RPC_ENTRY
575 NdrServerContextNewUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
576
577RPCRTAPI RPC_STATUS RPC_ENTRY
578 RpcSmDestroyClientContext( void **ContextHandle );
579
580RPCRTAPI void RPC_ENTRY
581 RpcSsDestroyClientContext( void **ContextHandle );
582
583RPCRTAPI void RPC_ENTRY
584 NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
585RPCRTAPI void RPC_ENTRY
586 NdrSimpleTypeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
587
588RPCRTAPI unsigned char* RPC_ENTRY
589 NdrByteCountPointerMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
590RPCRTAPI unsigned char* RPC_ENTRY
591 NdrByteCountPointerUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc );
592RPCRTAPI void RPC_ENTRY
593 NdrByteCountPointerBufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
594RPCRTAPI void RPC_ENTRY
595 NdrByteCountPointerFree( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
596
597RPCRTAPI unsigned char* RPC_ENTRY
598 NdrRangeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc );
599
600/* while MS declares each prototype separately, I prefer to use macros for this kind of thing instead */
601#define SIMPLE_TYPE_MARSHAL(type) \
602RPCRTAPI unsigned char* RPC_ENTRY \
603 Ndr##type##Marshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
604RPCRTAPI unsigned char* RPC_ENTRY \
605 Ndr##type##Unmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ); \
606RPCRTAPI void RPC_ENTRY \
607 Ndr##type##BufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
608RPCRTAPI ULONG RPC_ENTRY \
609 Ndr##type##MemorySize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
610
611#define TYPE_MARSHAL(type) \
612 SIMPLE_TYPE_MARSHAL(type) \
613RPCRTAPI void RPC_ENTRY \
614 Ndr##type##Free( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
615
616TYPE_MARSHAL(Pointer)
617TYPE_MARSHAL(SimpleStruct)
618TYPE_MARSHAL(ConformantStruct)
619TYPE_MARSHAL(ConformantVaryingStruct)
620TYPE_MARSHAL(ComplexStruct)
621TYPE_MARSHAL(FixedArray)
622TYPE_MARSHAL(ConformantArray)
623TYPE_MARSHAL(ConformantVaryingArray)
624TYPE_MARSHAL(VaryingArray)
625TYPE_MARSHAL(ComplexArray)
626TYPE_MARSHAL(EncapsulatedUnion)
627TYPE_MARSHAL(NonEncapsulatedUnion)
628TYPE_MARSHAL(XmitOrRepAs)
629TYPE_MARSHAL(UserMarshal)
630TYPE_MARSHAL(InterfacePointer)
631
632SIMPLE_TYPE_MARSHAL(ConformantString)
633SIMPLE_TYPE_MARSHAL(NonConformantString)
634
635#undef TYPE_MARSHAL
636#undef SIMPLE_TYPE_MARSHAL
637
638RPCRTAPI void RPC_ENTRY
639 NdrCorrelationInitialize( PMIDL_STUB_MESSAGE pStubMsg, void *pMemory, ULONG CacheSize, ULONG flags );
640RPCRTAPI void RPC_ENTRY
641 NdrCorrelationPass( PMIDL_STUB_MESSAGE pStubMsg );
642RPCRTAPI void RPC_ENTRY
643 NdrCorrelationFree( PMIDL_STUB_MESSAGE pStubMsg );
644
645RPCRTAPI void RPC_ENTRY
646 NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, LONG NumberParams );
647RPCRTAPI void RPC_ENTRY
648 NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
649
650#define USER_MARSHAL_FC_BYTE 1
651#define USER_MARSHAL_FC_CHAR 2
652#define USER_MARSHAL_FC_SMALL 3
653#define USER_MARSHAL_FC_USMALL 4
654#define USER_MARSHAL_FC_WCHAR 5
655#define USER_MARSHAL_FC_SHORT 6
656#define USER_MARSHAL_FC_USHORT 7
657#define USER_MARSHAL_FC_LONG 8
658#define USER_MARSHAL_FC_ULONG 9
659#define USER_MARSHAL_FC_FLOAT 10
660#define USER_MARSHAL_FC_HYPER 11
661#define USER_MARSHAL_FC_DOUBLE 12
662
663RPCRTAPI unsigned char* RPC_ENTRY
664 NdrUserMarshalSimpleTypeConvert( ULONG *pFlags, unsigned char *pBuffer, unsigned char FormatChar );
665
666CLIENT_CALL_RETURN RPC_VAR_ENTRY
667 NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
668CLIENT_CALL_RETURN RPC_VAR_ENTRY
669 NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
670CLIENT_CALL_RETURN RPC_VAR_ENTRY
671 NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
672CLIENT_CALL_RETURN RPC_VAR_ENTRY
673 NdrDcomAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
674
675RPCRTAPI void RPC_ENTRY
676 NdrServerCall2( PRPC_MESSAGE pRpcMsg );
677RPCRTAPI void RPC_ENTRY
678 NdrServerCall( PRPC_MESSAGE pRpcMsg );
679RPCRTAPI void RPC_ENTRY
680 NdrAsyncServerCall( PRPC_MESSAGE pRpcMsg );
681
682RPCRTAPI LONG RPC_ENTRY
683 NdrStubCall2( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
684RPCRTAPI LONG RPC_ENTRY
685 NdrStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
686RPCRTAPI LONG RPC_ENTRY
687 NdrAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
688RPCRTAPI LONG RPC_ENTRY
689 NdrDcomAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
690
691RPCRTAPI void* RPC_ENTRY
692 NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg, SIZE_T Len ) __WINE_ALLOC_SIZE(2);
693
694RPCRTAPI void RPC_ENTRY
695 NdrClearOutParameters( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, void *ArgAddr );
696
697RPCRTAPI RPC_STATUS RPC_ENTRY
698 NdrMapCommAndFaultStatus( PMIDL_STUB_MESSAGE pStubMsg, ULONG *pCommStatus,
699 ULONG *pFaultStatus, RPC_STATUS Status_ );
700
701RPCRTAPI void* RPC_ENTRY
702 NdrOleAllocate( SIZE_T Size ) __WINE_ALLOC_SIZE(1);
703RPCRTAPI void RPC_ENTRY
704 NdrOleFree( void* NodeToFree );
705
706RPCRTAPI void RPC_ENTRY
707 NdrClientInitialize( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
708 PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
709RPCRTAPI void RPC_ENTRY
710 NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
711 PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
712RPCRTAPI unsigned char* RPC_ENTRY
713 NdrServerInitialize( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
714RPCRTAPI unsigned char* RPC_ENTRY
715 NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
716RPCRTAPI unsigned char* RPC_ENTRY
717 NdrServerInitializeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc, PRPC_MESSAGE pRpcMsg );
718RPCRTAPI void RPC_ENTRY
719 NdrServerInitializeMarshall( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg );
720RPCRTAPI void RPC_ENTRY
721 NdrServerMarshall( struct IRpcStubBuffer *pThis, struct IRpcChannelBuffer *pChannel, PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
722RPCRTAPI void RPC_ENTRY
723 NdrServerUnmarshall( struct IRpcChannelBuffer *pChannel, PRPC_MESSAGE pRpcMsg,
724 PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc,
725 PFORMAT_STRING pFormat, void *pParamList );
726RPCRTAPI unsigned char* RPC_ENTRY
727 NdrGetBuffer( PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle );
728RPCRTAPI void RPC_ENTRY
729 NdrFreeBuffer( PMIDL_STUB_MESSAGE pStubMsg );
730RPCRTAPI unsigned char* RPC_ENTRY
731 NdrSendReceive( PMIDL_STUB_MESSAGE stubmsg, unsigned char *buffer );
732
733RPCRTAPI unsigned char * RPC_ENTRY
734 NdrNsGetBuffer( PMIDL_STUB_MESSAGE pStubMsg, ULONG BufferLength, RPC_BINDING_HANDLE Handle );
735RPCRTAPI unsigned char * RPC_ENTRY
736 NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pBufferEnd, RPC_BINDING_HANDLE *pAutoHandle );
737
738RPCRTAPI RPC_STATUS RPC_ENTRY
739 NdrGetDcomProtocolVersion( PMIDL_STUB_MESSAGE pStubMsg, RPC_VERSION *pVersion );
740
741RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
742 NdrFullPointerXlatInit( ULONG NumberOfPointers, XLAT_SIDE XlatSide );
743RPCRTAPI void RPC_ENTRY
744 NdrFullPointerXlatFree( PFULL_PTR_XLAT_TABLES pXlatTables );
745RPCRTAPI int RPC_ENTRY
746 NdrFullPointerQueryPointer( PFULL_PTR_XLAT_TABLES pXlatTables, void *pPointer,
747 unsigned char QueryType, ULONG *pRefId );
748RPCRTAPI int RPC_ENTRY
749 NdrFullPointerQueryRefId( PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId,
750 unsigned char QueryType, void **ppPointer );
751RPCRTAPI void RPC_ENTRY
752 NdrFullPointerInsertRefId( PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId, void *pPointer );
753RPCRTAPI int RPC_ENTRY
754 NdrFullPointerFree( PFULL_PTR_XLAT_TABLES pXlatTables, void *Pointer );
755
756RPCRTAPI void RPC_ENTRY
757 NdrRpcSsEnableAllocate( PMIDL_STUB_MESSAGE pMessage );
758RPCRTAPI void RPC_ENTRY
759 NdrRpcSsDisableAllocate( PMIDL_STUB_MESSAGE pMessage );
760RPCRTAPI void RPC_ENTRY
761 NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage );
762RPCRTAPI void * RPC_ENTRY
763 NdrRpcSmClientAllocate( SIZE_T Size ) __WINE_ALLOC_SIZE(1);
764RPCRTAPI void RPC_ENTRY
765 NdrRpcSmClientFree( void *NodeToFree );
766RPCRTAPI void * RPC_ENTRY
767 NdrRpcSsDefaultAllocate( SIZE_T Size ) __WINE_ALLOC_SIZE(1);
768RPCRTAPI void RPC_ENTRY
769 NdrRpcSsDefaultFree( void *NodeToFree );
770
771RPCRTAPI RPC_STATUS RPC_ENTRY
772 NdrGetUserMarshalInfo( ULONG *pFlags, ULONG InformationLevel, NDR_USER_MARSHAL_INFO *pMarshalInfo );
773
774#ifdef __cplusplus
775}
776#endif
777#endif /*__WINE_RPCNDR_H */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette