2002-03-10 00:29:33 +01:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2000 Francois Gouget
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2002-03-10 00:29:33 +01:00
|
|
|
*/
|
|
|
|
|
2000-11-08 06:06:10 +01:00
|
|
|
#ifndef __RPCNDR_H_VERSION__
|
2010-11-30 23:57:24 +01:00
|
|
|
#define __RPCNDR_H_VERSION__ ( 500 )
|
2002-08-09 03:11:39 +02:00
|
|
|
#endif
|
|
|
|
|
2002-10-10 21:23:33 +02:00
|
|
|
#ifndef __WINE_RPCNDR_H
|
|
|
|
#define __WINE_RPCNDR_H
|
|
|
|
|
2010-09-07 11:36:46 +02:00
|
|
|
#include <basetsd.h>
|
2011-05-24 13:10:09 +02:00
|
|
|
#include <rpcsal.h>
|
2010-09-07 11:36:46 +02:00
|
|
|
|
2004-03-22 21:38:06 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2006-09-29 12:45:44 +02:00
|
|
|
#undef CONST_VTBL
|
|
|
|
#ifdef CONST_VTABLE
|
|
|
|
# define CONST_VTBL const
|
|
|
|
#else
|
|
|
|
# define CONST_VTBL
|
|
|
|
#endif
|
|
|
|
|
2014-03-10 13:35:28 +01:00
|
|
|
#ifndef EXTERN_GUID
|
2013-08-19 16:47:36 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
|
|
|
EXTERN_C const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
|
|
|
|
EXTERN_C const GUID DECLSPEC_SELECTANY name = \
|
|
|
|
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
|
|
|
|
#else
|
|
|
|
#define EXTERN_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \
|
|
|
|
const GUID DECLSPEC_SELECTANY name DECLSPEC_HIDDEN; \
|
|
|
|
const GUID DECLSPEC_SELECTANY name = \
|
|
|
|
{ l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }
|
|
|
|
#endif
|
2014-03-10 13:35:28 +01:00
|
|
|
#endif
|
2013-08-19 16:47:36 +02:00
|
|
|
|
2006-05-26 05:36:03 +02:00
|
|
|
/* stupid #if can't handle casts... this __stupidity
|
2002-10-31 23:04:33 +01:00
|
|
|
is just a workaround for that limitation */
|
|
|
|
|
2011-11-23 12:12:55 +01:00
|
|
|
#define __NDR_CHAR_REP_MASK 0x000f
|
|
|
|
#define __NDR_INT_REP_MASK 0x00f0
|
|
|
|
#define __NDR_FLOAT_REP_MASK 0xff00
|
2002-10-31 23:04:33 +01:00
|
|
|
|
2011-11-23 12:12:55 +01:00
|
|
|
#define __NDR_IEEE_FLOAT 0x0000
|
|
|
|
#define __NDR_VAX_FLOAT 0x0100
|
|
|
|
#define __NDR_IBM_FLOAT 0x0300
|
2002-10-31 23:04:33 +01:00
|
|
|
|
2011-11-23 12:12:55 +01:00
|
|
|
#define __NDR_ASCII_CHAR 0x0000
|
|
|
|
#define __NDR_EBCDIC_CHAR 0x0001
|
2002-10-31 23:04:33 +01:00
|
|
|
|
2011-11-23 12:12:55 +01:00
|
|
|
#define __NDR_LITTLE_ENDIAN 0x0010
|
|
|
|
#define __NDR_BIG_ENDIAN 0x0000
|
2002-10-31 23:04:33 +01:00
|
|
|
|
|
|
|
/* Mac's are special */
|
|
|
|
#if defined(__RPC_MAC__)
|
2004-12-20 17:53:12 +01:00
|
|
|
# define __NDR_LOCAL_DATA_REPRESENTATION \
|
2002-10-31 23:04:33 +01:00
|
|
|
(__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_BIG_ENDIAN)
|
|
|
|
#else
|
2004-12-20 17:53:12 +01:00
|
|
|
# define __NDR_LOCAL_DATA_REPRESENTATION \
|
2002-10-31 23:04:33 +01:00
|
|
|
(__NDR_IEEE_FLOAT | __NDR_ASCII_CHAR | __NDR_LITTLE_ENDIAN)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __NDR_LOCAL_ENDIAN \
|
|
|
|
(__NDR_LOCAL_DATA_REPRESENTATION & __NDR_INT_REP_MASK)
|
|
|
|
|
|
|
|
/* for convenience, define NDR_LOCAL_IS_BIG_ENDIAN iff it is */
|
|
|
|
#if __NDR_LOCAL_ENDIAN == __NDR_BIG_ENDIAN
|
2004-12-20 17:53:12 +01:00
|
|
|
# define NDR_LOCAL_IS_BIG_ENDIAN
|
2002-10-31 23:04:33 +01:00
|
|
|
#elif __NDR_LOCAL_ENDIAN == __NDR_LITTLE_ENDIAN
|
2004-12-20 17:53:12 +01:00
|
|
|
# undef NDR_LOCAL_IS_BIG_ENDIAN
|
2002-10-31 23:04:33 +01:00
|
|
|
#else
|
2004-12-20 17:53:12 +01:00
|
|
|
# error alien NDR_LOCAL_ENDIAN - Greg botched the defines again, please report
|
2002-10-31 23:04:33 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* finally, do the casts like Microsoft */
|
|
|
|
|
2006-11-08 23:44:33 +01:00
|
|
|
#define NDR_CHAR_REP_MASK ((ULONG) __NDR_CHAR_REP_MASK)
|
|
|
|
#define NDR_INT_REP_MASK ((ULONG) __NDR_INT_REP_MASK)
|
|
|
|
#define NDR_FLOAT_REP_MASK ((ULONG) __NDR_FLOAT_REP_MASK)
|
|
|
|
#define NDR_IEEE_FLOAT ((ULONG) __NDR_IEEE_FLOAT)
|
|
|
|
#define NDR_VAX_FLOAT ((ULONG) __NDR_VAX_FLOAT)
|
|
|
|
#define NDR_IBM_FLOAT ((ULONG) __NDR_IBM_FLOAT)
|
|
|
|
#define NDR_ASCII_CHAR ((ULONG) __NDR_ASCII_CHAR)
|
|
|
|
#define NDR_EBCDIC_CHAR ((ULONG) __NDR_EBCDIC_CHAR)
|
|
|
|
#define NDR_LITTLE_ENDIAN ((ULONG) __NDR_LITTLE_ENDIAN)
|
|
|
|
#define NDR_BIG_ENDIAN ((ULONG) __NDR_BIG_ENDIAN)
|
|
|
|
#define NDR_LOCAL_DATA_REPRESENTATION ((ULONG) __NDR_LOCAL_DATA_REPRESENTATION)
|
|
|
|
#define NDR_LOCAL_ENDIAN ((ULONG) __NDR_LOCAL_ENDIAN)
|
2002-10-28 22:14:16 +01:00
|
|
|
|
|
|
|
|
2002-10-31 23:04:33 +01:00
|
|
|
#define TARGET_IS_NT50_OR_LATER 1
|
2002-08-09 03:11:39 +02:00
|
|
|
#define TARGET_IS_NT40_OR_LATER 1
|
|
|
|
#define TARGET_IS_NT351_OR_WIN95_OR_LATER 1
|
2000-11-08 06:06:10 +01:00
|
|
|
|
2004-03-22 23:58:04 +01:00
|
|
|
#define small char
|
2000-11-08 06:06:10 +01:00
|
|
|
typedef unsigned char byte;
|
2009-11-21 14:23:47 +01:00
|
|
|
typedef INT64 hyper;
|
|
|
|
typedef UINT64 MIDL_uhyper;
|
2006-07-06 13:54:58 +02:00
|
|
|
typedef unsigned char boolean;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2002-08-09 03:11:39 +02:00
|
|
|
#define __RPC_CALLEE WINAPI
|
2004-09-03 19:28:52 +02:00
|
|
|
#define RPC_VAR_ENTRY __cdecl
|
2004-03-22 23:58:04 +01:00
|
|
|
#define NDR_SHAREABLE static
|
2002-08-09 03:11:39 +02:00
|
|
|
|
2003-01-31 04:21:11 +01:00
|
|
|
#define MIDL_ascii_strlen(s) strlen(s)
|
|
|
|
#define MIDL_ascii_strcpy(d,s) strcpy(d,s)
|
|
|
|
#define MIDL_memset(d,v,n) memset(d,v,n)
|
2004-03-22 23:58:04 +01:00
|
|
|
#define midl_user_free MIDL_user_free
|
|
|
|
#define midl_user_allocate MIDL_user_allocate
|
2003-01-31 04:21:11 +01:00
|
|
|
|
2010-10-26 19:06:01 +02:00
|
|
|
void * __RPC_USER MIDL_user_allocate(SIZE_T);
|
|
|
|
void __RPC_USER MIDL_user_free(void *);
|
|
|
|
|
2003-01-31 04:21:11 +01:00
|
|
|
#define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
|
|
|
|
#define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), \
|
|
|
|
(unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
|
|
|
|
|
2008-09-15 11:30:29 +02:00
|
|
|
#define RPC_BAD_STUB_DATA_EXCEPTION_FILTER \
|
|
|
|
((RpcExceptionCode() == STATUS_ACCESS_VIOLATION) || \
|
|
|
|
(RpcExceptionCode() == STATUS_DATATYPE_MISALIGNMENT) || \
|
|
|
|
(RpcExceptionCode() == RPC_X_BAD_STUB_DATA) || \
|
|
|
|
(RpcExceptionCode() == RPC_S_INVALID_BOUND))
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
void *pad[2];
|
|
|
|
void *userContext;
|
|
|
|
} *NDR_SCONTEXT;
|
|
|
|
|
|
|
|
#define NDRSContextValue(hContext) (&(hContext)->userContext)
|
|
|
|
#define cbNDRContext 20
|
|
|
|
|
2002-02-05 19:09:29 +01:00
|
|
|
typedef void (__RPC_USER *NDR_RUNDOWN)(void *context);
|
|
|
|
typedef void (__RPC_USER *NDR_NOTIFY_ROUTINE)(void);
|
2006-07-06 13:54:58 +02:00
|
|
|
typedef void (__RPC_USER *NDR_NOTIFY2_ROUTINE)(boolean flag);
|
2000-11-08 06:06:10 +01:00
|
|
|
|
|
|
|
#define DECLSPEC_UUID(x)
|
|
|
|
#define MIDL_INTERFACE(x) struct
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
struct _MIDL_STUB_MESSAGE;
|
|
|
|
struct _MIDL_STUB_DESC;
|
|
|
|
struct _FULL_PTR_XLAT_TABLES;
|
2004-09-08 03:27:24 +02:00
|
|
|
struct NDR_ALLOC_ALL_NODES_CONTEXT;
|
|
|
|
struct NDR_POINTER_QUEUE_STATE;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
typedef unsigned char *RPC_BUFPTR;
|
2009-01-04 11:29:30 +01:00
|
|
|
typedef ULONG RPC_LENGTH;
|
2002-02-05 19:09:29 +01:00
|
|
|
typedef void (__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE *);
|
2001-10-14 18:15:37 +02:00
|
|
|
typedef const unsigned char *PFORMAT_STRING;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2006-11-08 23:44:33 +01:00
|
|
|
LONG Dimension;
|
|
|
|
ULONG *BufferConformanceMark;
|
|
|
|
ULONG *BufferVarianceMark;
|
|
|
|
ULONG *MaxCountArray;
|
|
|
|
ULONG *OffsetArray;
|
|
|
|
ULONG *ActualCountArray;
|
2001-10-14 18:15:37 +02:00
|
|
|
} ARRAY_INFO, *PARRAY_INFO;
|
|
|
|
|
2004-09-08 03:27:24 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG WireCodeset;
|
|
|
|
ULONG DesiredReceivingCodeset;
|
2004-09-08 03:27:24 +02:00
|
|
|
void *CSArrayInfo;
|
|
|
|
} CS_STUB_INFO;
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
typedef struct _NDR_PIPE_DESC *PNDR_PIPE_DESC;
|
|
|
|
typedef struct _NDR_PIPE_MESSAGE *PNDR_PIPE_MESSAGE;
|
|
|
|
typedef struct _NDR_ASYNC_MESSAGE *PNDR_ASYNC_MESSAGE;
|
|
|
|
typedef struct _NDR_CORRELATION_INFO *PNDR_CORRELATION_INFO;
|
|
|
|
|
|
|
|
typedef struct _MIDL_STUB_MESSAGE
|
|
|
|
{
|
|
|
|
PRPC_MESSAGE RpcMsg;
|
|
|
|
unsigned char *Buffer;
|
|
|
|
unsigned char *BufferStart;
|
|
|
|
unsigned char *BufferEnd;
|
|
|
|
unsigned char *BufferMark;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG BufferLength;
|
|
|
|
ULONG MemorySize;
|
2001-10-14 18:15:37 +02:00
|
|
|
unsigned char *Memory;
|
2008-06-19 08:50:51 +02:00
|
|
|
unsigned char IsClient;
|
|
|
|
unsigned char Pad;
|
|
|
|
unsigned short uFlags2;
|
2001-10-14 18:15:37 +02:00
|
|
|
int ReuseBuffer;
|
2004-09-08 03:27:24 +02:00
|
|
|
struct NDR_ALLOC_ALL_NODES_CONTEXT *pAllocAllNodesContext;
|
|
|
|
struct NDR_POINTER_QUEUE_STATE *pPointerQueueState;
|
2001-10-14 18:15:37 +02:00
|
|
|
int IgnoreEmbeddedPointers;
|
|
|
|
unsigned char *PointerBufferMark;
|
2008-06-22 17:17:32 +02:00
|
|
|
unsigned char CorrDespIncrement;
|
2004-09-08 03:27:24 +02:00
|
|
|
unsigned char uFlags;
|
|
|
|
unsigned short UniquePtrCount;
|
2001-10-14 18:15:37 +02:00
|
|
|
ULONG_PTR MaxCount;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG Offset;
|
|
|
|
ULONG ActualCount;
|
2009-01-30 14:46:17 +01:00
|
|
|
void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(SIZE_T);
|
2002-02-05 19:09:29 +01:00
|
|
|
void (__RPC_API *pfnFree)(void *);
|
2001-10-14 18:15:37 +02:00
|
|
|
unsigned char *StackTop;
|
|
|
|
unsigned char *pPresentedType;
|
|
|
|
unsigned char *pTransmitType;
|
|
|
|
handle_t SavedHandle;
|
|
|
|
const struct _MIDL_STUB_DESC *StubDesc;
|
|
|
|
struct _FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG FullPtrRefId;
|
|
|
|
ULONG PointerLength;
|
2009-10-08 11:22:01 +02:00
|
|
|
unsigned int fInDontFree:1;
|
|
|
|
unsigned int fDontCallFreeInst:1;
|
|
|
|
unsigned int fInOnlyParam:1;
|
|
|
|
unsigned int fHasReturn:1;
|
|
|
|
unsigned int fHasExtensions:1;
|
|
|
|
unsigned int fHasNewCorrDesc:1;
|
|
|
|
unsigned int fIsIn:1;
|
|
|
|
unsigned int fIsOut:1;
|
|
|
|
unsigned int fIsOicf:1;
|
|
|
|
unsigned int fBufferValid:1;
|
|
|
|
unsigned int fHasMemoryValidateCallback:1;
|
|
|
|
unsigned int fInFree:1;
|
|
|
|
unsigned int fNeedMCCP:1;
|
2008-06-22 17:17:32 +02:00
|
|
|
int fUnused:3;
|
2004-09-03 03:03:29 +02:00
|
|
|
int fUnused2:16;
|
2006-11-08 23:44:33 +01:00
|
|
|
DWORD dwDestContext;
|
2001-10-14 18:15:37 +02:00
|
|
|
void *pvDestContext;
|
|
|
|
NDR_SCONTEXT *SavedContextHandles;
|
2006-11-08 23:44:33 +01:00
|
|
|
LONG ParamNumber;
|
2001-10-14 18:15:37 +02:00
|
|
|
struct IRpcChannelBuffer *pRpcChannelBuffer;
|
|
|
|
PARRAY_INFO pArrayInfo;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG *SizePtrCountArray;
|
|
|
|
ULONG *SizePtrOffsetArray;
|
|
|
|
ULONG *SizePtrLengthArray;
|
2001-10-14 18:15:37 +02:00
|
|
|
void *pArgQueue;
|
2006-11-08 23:44:33 +01:00
|
|
|
DWORD dwStubPhase;
|
2004-09-08 03:27:24 +02:00
|
|
|
void *LowStackMark;
|
2001-10-14 18:15:37 +02:00
|
|
|
PNDR_ASYNC_MESSAGE pAsyncMsg;
|
|
|
|
PNDR_CORRELATION_INFO pCorrInfo;
|
|
|
|
unsigned char *pCorrMemory;
|
|
|
|
void *pMemoryList;
|
2004-09-08 03:27:24 +02:00
|
|
|
CS_STUB_INFO *pCSInfo;
|
|
|
|
unsigned char *ConformanceMark;
|
|
|
|
unsigned char *VarianceMark;
|
2007-01-10 16:28:20 +01:00
|
|
|
INT_PTR Unused; /* BackingStoreLowMark on IA64 */
|
2004-09-08 03:27:24 +02:00
|
|
|
struct _NDR_PROC_CONTEXT *pContext;
|
2007-01-10 16:28:20 +01:00
|
|
|
void* ContextHandleHash;
|
|
|
|
void* pUserMarshalList;
|
2004-09-08 03:27:24 +02:00
|
|
|
INT_PTR Reserved51_3;
|
|
|
|
INT_PTR Reserved51_4;
|
|
|
|
INT_PTR Reserved51_5;
|
2001-10-14 18:15:37 +02:00
|
|
|
} MIDL_STUB_MESSAGE, *PMIDL_STUB_MESSAGE;
|
|
|
|
|
2006-05-25 00:03:54 +02:00
|
|
|
typedef void * (__RPC_API * GENERIC_BINDING_ROUTINE)(void *);
|
|
|
|
typedef void (__RPC_API * GENERIC_UNBIND_ROUTINE)(void *, unsigned char *);
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2006-05-25 00:03:54 +02:00
|
|
|
typedef struct _GENERIC_BINDING_ROUTINE_PAIR
|
|
|
|
{
|
|
|
|
GENERIC_BINDING_ROUTINE pfnBind;
|
|
|
|
GENERIC_UNBIND_ROUTINE pfnUnbind;
|
|
|
|
} GENERIC_BINDING_ROUTINE_PAIR, *PGENERIC_BINDING_ROUTINE_PAIR;
|
|
|
|
|
|
|
|
typedef struct __GENERIC_BINDING_INFO
|
|
|
|
{
|
|
|
|
void *pObj;
|
|
|
|
unsigned int Size;
|
|
|
|
GENERIC_BINDING_ROUTINE pfnBind;
|
|
|
|
GENERIC_UNBIND_ROUTINE pfnUnbind;
|
|
|
|
} GENERIC_BINDING_INFO, *PGENERIC_BINDING_INFO;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2004-03-22 23:58:04 +01:00
|
|
|
typedef void (__RPC_USER *XMIT_HELPER_ROUTINE)(PMIDL_STUB_MESSAGE);
|
|
|
|
|
|
|
|
typedef struct _XMIT_ROUTINE_QUINTUPLE
|
|
|
|
{
|
|
|
|
XMIT_HELPER_ROUTINE pfnTranslateToXmit;
|
|
|
|
XMIT_HELPER_ROUTINE pfnTranslateFromXmit;
|
|
|
|
XMIT_HELPER_ROUTINE pfnFreeXmit;
|
|
|
|
XMIT_HELPER_ROUTINE pfnFreeInst;
|
|
|
|
} XMIT_ROUTINE_QUINTUPLE, *PXMIT_ROUTINE_QUINTUPLE;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2006-11-08 23:44:33 +01:00
|
|
|
typedef ULONG (__RPC_USER *USER_MARSHAL_SIZING_ROUTINE)(ULONG *, ULONG, void *);
|
|
|
|
typedef unsigned char * (__RPC_USER *USER_MARSHAL_MARSHALLING_ROUTINE)(ULONG *, unsigned char *, void *);
|
|
|
|
typedef unsigned char * (__RPC_USER *USER_MARSHAL_UNMARSHALLING_ROUTINE)(ULONG *, unsigned char *, void *);
|
|
|
|
typedef void (__RPC_USER *USER_MARSHAL_FREEING_ROUTINE)(ULONG *, void *);
|
2003-01-31 04:21:11 +01:00
|
|
|
|
|
|
|
typedef struct _USER_MARSHAL_ROUTINE_QUADRUPLE
|
|
|
|
{
|
|
|
|
USER_MARSHAL_SIZING_ROUTINE pfnBufferSize;
|
|
|
|
USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall;
|
|
|
|
USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall;
|
|
|
|
USER_MARSHAL_FREEING_ROUTINE pfnFree;
|
|
|
|
} USER_MARSHAL_ROUTINE_QUADRUPLE;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2006-01-27 12:53:51 +01:00
|
|
|
/* 'USRC' */
|
|
|
|
#define USER_MARSHAL_CB_SIGNATURE \
|
2007-03-19 15:56:39 +01:00
|
|
|
( ( (DWORD)'U' << 24 ) | ( (DWORD)'S' << 16 ) | \
|
|
|
|
( (DWORD)'R' << 8 ) | ( (DWORD)'C' ) )
|
2006-01-27 12:53:51 +01:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
USER_MARSHAL_CB_BUFFER_SIZE,
|
|
|
|
USER_MARSHAL_CB_MARSHALL,
|
|
|
|
USER_MARSHAL_CB_UNMARSHALL,
|
|
|
|
USER_MARSHAL_CB_FREE
|
|
|
|
} USER_MARSHAL_CB_TYPE;
|
|
|
|
|
|
|
|
typedef struct _USER_MARSHAL_CB
|
|
|
|
{
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG Flags;
|
2006-01-27 12:53:51 +01:00
|
|
|
PMIDL_STUB_MESSAGE pStubMsg;
|
|
|
|
PFORMAT_STRING pReserve;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG Signature;
|
2006-01-27 12:53:51 +01:00
|
|
|
USER_MARSHAL_CB_TYPE CBType;
|
|
|
|
PFORMAT_STRING pFormat;
|
|
|
|
PFORMAT_STRING pTypeFormat;
|
|
|
|
} USER_MARSHAL_CB;
|
|
|
|
|
|
|
|
#define USER_CALL_CTXT_MASK(f) ((f) & 0x00ff)
|
|
|
|
#define USER_CALL_AUX_MASK(f) ((f) & 0xff00)
|
|
|
|
#define GET_USER_DATA_REP(f) HIWORD(f)
|
|
|
|
|
|
|
|
#define USER_CALL_IS_ASYNC 0x0100
|
|
|
|
#define USER_CALL_NEW_CORRELATION_DESC 0x0200
|
|
|
|
|
2004-03-22 23:58:04 +01:00
|
|
|
typedef struct _MALLOC_FREE_STRUCT
|
|
|
|
{
|
2009-01-30 14:46:17 +01:00
|
|
|
void * (__WINE_ALLOC_SIZE(1) __RPC_USER *pfnAllocate)(SIZE_T);
|
2004-03-22 23:58:04 +01:00
|
|
|
void (__RPC_USER *pfnFree)(void *);
|
|
|
|
} MALLOC_FREE_STRUCT;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2004-03-22 23:58:04 +01:00
|
|
|
typedef struct _COMM_FAULT_OFFSETS
|
|
|
|
{
|
|
|
|
short CommOffset;
|
|
|
|
short FaultOffset;
|
|
|
|
} COMM_FAULT_OFFSETS;
|
2001-10-14 18:15:37 +02:00
|
|
|
|
|
|
|
typedef struct _MIDL_STUB_DESC
|
|
|
|
{
|
|
|
|
void *RpcInterfaceInformation;
|
2009-01-30 14:46:17 +01:00
|
|
|
void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(SIZE_T);
|
2002-02-05 19:09:29 +01:00
|
|
|
void (__RPC_API *pfnFree)(void *);
|
2001-10-14 18:15:37 +02:00
|
|
|
union {
|
|
|
|
handle_t *pAutoHandle;
|
|
|
|
handle_t *pPrimitiveHandle;
|
|
|
|
PGENERIC_BINDING_INFO pGenericBindingInfo;
|
|
|
|
} IMPLICIT_HANDLE_INFO;
|
|
|
|
const NDR_RUNDOWN *apfnNdrRundownRoutines;
|
|
|
|
const GENERIC_BINDING_ROUTINE_PAIR *aGenericBindingRoutinePairs;
|
|
|
|
const EXPR_EVAL *apfnExprEval;
|
|
|
|
const XMIT_ROUTINE_QUINTUPLE *aXmitQuintuple;
|
|
|
|
const unsigned char *pFormatTypes;
|
|
|
|
int fCheckBounds;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG Version;
|
2001-10-14 18:15:37 +02:00
|
|
|
MALLOC_FREE_STRUCT *pMallocFreeStruct;
|
2006-11-08 23:44:33 +01:00
|
|
|
LONG MIDLVersion;
|
2001-10-14 18:15:37 +02:00
|
|
|
const COMM_FAULT_OFFSETS *CommFaultOffsets;
|
|
|
|
const USER_MARSHAL_ROUTINE_QUADRUPLE *aUserMarshalQuadruple;
|
|
|
|
const NDR_NOTIFY_ROUTINE *NotifyRoutineTable;
|
|
|
|
ULONG_PTR mFlags;
|
|
|
|
ULONG_PTR Reserved3;
|
|
|
|
ULONG_PTR Reserved4;
|
|
|
|
ULONG_PTR Reserved5;
|
|
|
|
} MIDL_STUB_DESC;
|
|
|
|
typedef const MIDL_STUB_DESC *PMIDL_STUB_DESC;
|
|
|
|
|
|
|
|
typedef struct _MIDL_FORMAT_STRING
|
|
|
|
{
|
|
|
|
short Pad;
|
|
|
|
#if defined(__GNUC__)
|
|
|
|
unsigned char Format[0];
|
|
|
|
#else
|
|
|
|
unsigned char Format[1];
|
|
|
|
#endif
|
|
|
|
} MIDL_FORMAT_STRING;
|
|
|
|
|
2004-09-08 03:27:24 +02:00
|
|
|
typedef struct _MIDL_SYNTAX_INFO
|
|
|
|
{
|
|
|
|
RPC_SYNTAX_IDENTIFIER TransferSyntax;
|
|
|
|
RPC_DISPATCH_TABLE* DispatchTable;
|
|
|
|
PFORMAT_STRING ProcString;
|
|
|
|
const unsigned short* FmtStringOffset;
|
|
|
|
PFORMAT_STRING TypeString;
|
|
|
|
const void* aUserMarshalQuadruple;
|
|
|
|
ULONG_PTR pReserved1;
|
|
|
|
ULONG_PTR pReserved2;
|
|
|
|
} MIDL_SYNTAX_INFO, *PMIDL_SYNTAX_INFO;
|
|
|
|
|
2002-02-05 19:09:29 +01:00
|
|
|
typedef void (__RPC_API *STUB_THUNK)( PMIDL_STUB_MESSAGE );
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2009-10-06 12:30:49 +02:00
|
|
|
#ifdef WINE_STRICT_PROTOTYPES
|
|
|
|
typedef LONG (__RPC_API *SERVER_ROUTINE)(void);
|
|
|
|
#else
|
2006-11-08 23:44:33 +01:00
|
|
|
typedef LONG (__RPC_API *SERVER_ROUTINE)();
|
2009-10-06 12:30:49 +02:00
|
|
|
#endif
|
2001-10-14 18:15:37 +02:00
|
|
|
|
|
|
|
typedef struct _MIDL_SERVER_INFO_
|
|
|
|
{
|
|
|
|
PMIDL_STUB_DESC pStubDesc;
|
|
|
|
const SERVER_ROUTINE *DispatchTable;
|
|
|
|
PFORMAT_STRING ProcString;
|
|
|
|
const unsigned short *FmtStringOffset;
|
|
|
|
const STUB_THUNK *ThunkTable;
|
2004-09-08 03:27:24 +02:00
|
|
|
PRPC_SYNTAX_IDENTIFIER pTransferSyntax;
|
|
|
|
ULONG_PTR nCount;
|
|
|
|
PMIDL_SYNTAX_INFO pSyntaxInfo;
|
2001-10-14 18:15:37 +02:00
|
|
|
} MIDL_SERVER_INFO, *PMIDL_SERVER_INFO;
|
|
|
|
|
2002-08-09 03:11:39 +02:00
|
|
|
typedef struct _MIDL_STUBLESS_PROXY_INFO
|
|
|
|
{
|
|
|
|
PMIDL_STUB_DESC pStubDesc;
|
|
|
|
PFORMAT_STRING ProcFormatString;
|
|
|
|
const unsigned short *FormatStringOffset;
|
2004-09-08 03:27:24 +02:00
|
|
|
PRPC_SYNTAX_IDENTIFIER pTransferSyntax;
|
|
|
|
ULONG_PTR nCount;
|
|
|
|
PMIDL_SYNTAX_INFO pSyntaxInfo;
|
2002-08-09 03:11:39 +02:00
|
|
|
} MIDL_STUBLESS_PROXY_INFO, *PMIDL_STUBLESS_PROXY_INFO;
|
|
|
|
|
2011-06-01 22:10:58 +02:00
|
|
|
|
|
|
|
#if defined(__i386__) && !defined(__MSC_VER) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
|
|
|
/* Calling convention for returning structures/unions is different between Windows and gcc on i386 */
|
|
|
|
typedef LONG_PTR CLIENT_CALL_RETURN;
|
|
|
|
#else
|
2002-08-09 03:11:39 +02:00
|
|
|
typedef union _CLIENT_CALL_RETURN
|
|
|
|
{
|
|
|
|
void *Pointer;
|
|
|
|
LONG_PTR Simple;
|
|
|
|
} CLIENT_CALL_RETURN;
|
2011-06-01 22:10:58 +02:00
|
|
|
#endif
|
2002-08-09 03:11:39 +02:00
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
typedef enum {
|
|
|
|
STUB_UNMARSHAL,
|
|
|
|
STUB_CALL_SERVER,
|
|
|
|
STUB_MARSHAL,
|
|
|
|
STUB_CALL_SERVER_NO_HRESULT
|
|
|
|
} STUB_PHASE;
|
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
PROXY_CALCSIZE,
|
|
|
|
PROXY_GETBUFFER,
|
|
|
|
PROXY_MARSHAL,
|
|
|
|
PROXY_SENDRECEIVE,
|
|
|
|
PROXY_UNMARSHAL
|
|
|
|
} PROXY_PHASE;
|
|
|
|
|
2004-03-03 06:25:37 +01:00
|
|
|
typedef enum {
|
|
|
|
XLAT_SERVER = 1,
|
|
|
|
XLAT_CLIENT
|
|
|
|
} XLAT_SIDE;
|
|
|
|
|
|
|
|
typedef struct _FULL_PTR_TO_REFID_ELEMENT {
|
|
|
|
struct _FULL_PTR_TO_REFID_ELEMENT *Next;
|
|
|
|
void *Pointer;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG RefId;
|
2004-03-03 06:25:37 +01:00
|
|
|
unsigned char State;
|
|
|
|
} FULL_PTR_TO_REFID_ELEMENT, *PFULL_PTR_TO_REFID_ELEMENT;
|
|
|
|
|
|
|
|
/* Full pointer translation tables */
|
|
|
|
typedef struct _FULL_PTR_XLAT_TABLES {
|
|
|
|
struct {
|
|
|
|
void **XlatTable;
|
|
|
|
unsigned char *StateTable;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG NumberOfEntries;
|
2004-03-03 06:25:37 +01:00
|
|
|
} RefIdToPointer;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG NumberOfBuckets;
|
|
|
|
ULONG HashMask;
|
2004-03-03 06:25:37 +01:00
|
|
|
} PointerToRefId;
|
|
|
|
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG NextRefId;
|
2004-03-03 06:25:37 +01:00
|
|
|
XLAT_SIDE XlatSide;
|
|
|
|
} FULL_PTR_XLAT_TABLES, *PFULL_PTR_XLAT_TABLES;
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
struct IRpcStubBuffer;
|
|
|
|
|
2006-11-08 23:44:33 +01:00
|
|
|
typedef ULONG error_status_t;
|
2004-03-03 06:25:37 +01:00
|
|
|
typedef void * NDR_CCONTEXT;
|
|
|
|
|
|
|
|
typedef struct _SCONTEXT_QUEUE {
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG NumberOfObjects;
|
2004-03-03 06:25:37 +01:00
|
|
|
NDR_SCONTEXT *ArrayOfObjects;
|
|
|
|
} SCONTEXT_QUEUE, *PSCONTEXT_QUEUE;
|
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1
|
|
|
|
{
|
|
|
|
void *Buffer;
|
|
|
|
ULONG BufferSize;
|
2009-01-30 14:46:17 +01:00
|
|
|
void * (__WINE_ALLOC_SIZE(1) __RPC_API *pfnAllocate)(SIZE_T);
|
2007-12-17 12:51:48 +01:00
|
|
|
void (__RPC_API *pfnFree)(void *);
|
|
|
|
struct IRpcChannelBuffer *pRpcChannelBuffer;
|
|
|
|
ULONG_PTR Reserved[5];
|
|
|
|
} NDR_USER_MARSHAL_INFO_LEVEL1;
|
|
|
|
|
|
|
|
typedef struct _NDR_USER_MARSHAL_INFO
|
|
|
|
{
|
|
|
|
ULONG InformationLevel;
|
|
|
|
union
|
|
|
|
{
|
|
|
|
NDR_USER_MARSHAL_INFO_LEVEL1 Level1;
|
|
|
|
} DUMMYUNIONNAME1;
|
|
|
|
} NDR_USER_MARSHAL_INFO;
|
|
|
|
|
2005-08-03 16:55:57 +02:00
|
|
|
/* Context Handles */
|
|
|
|
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRCContextBinding( NDR_CCONTEXT CContext );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRCContextMarshall( NDR_CCONTEXT CContext, void *pBuff );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRCContextUnmarshall( NDR_CCONTEXT *pCContext, RPC_BINDING_HANDLE hBinding,
|
2006-11-08 23:44:33 +01:00
|
|
|
void *pBuff, ULONG DataRepresentation );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRSContextMarshall( NDR_SCONTEXT CContext, void *pBuff, NDR_RUNDOWN userRunDownIn );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI NDR_SCONTEXT RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NDRSContextUnmarshall( void *pBuff, ULONG DataRepresentation );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRSContextMarshallEx( RPC_BINDING_HANDLE BindingHandle, NDR_SCONTEXT CContext,
|
|
|
|
void *pBuff, NDR_RUNDOWN userRunDownIn );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRSContextMarshall2( RPC_BINDING_HANDLE BindingHandle, NDR_SCONTEXT CContext,
|
|
|
|
void *pBuff, NDR_RUNDOWN userRunDownIn, void * CtxGuard,
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG Flags );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI NDR_SCONTEXT RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRSContextUnmarshallEx( RPC_BINDING_HANDLE BindingHandle, void *pBuff,
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG DataRepresentation );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
|
|
|
RPCRTAPI NDR_SCONTEXT RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NDRSContextUnmarshall2( RPC_BINDING_HANDLE BindingHandle, void *pBuff,
|
2006-11-08 23:44:33 +01:00
|
|
|
ULONG DataRepresentation, void *CtxGuard,
|
|
|
|
ULONG Flags );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
2005-08-03 16:55:57 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrClientContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT ContextHandle, int fCheck );
|
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrClientContextUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, NDR_CCONTEXT* pContextHandle,
|
|
|
|
RPC_BINDING_HANDLE BindHandle );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2005-09-08 13:02:38 +02:00
|
|
|
NdrServerContextMarshall ( PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle, NDR_RUNDOWN RundownRoutine );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
|
|
|
RPCRTAPI NDR_SCONTEXT RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrServerContextUnmarshall( PMIDL_STUB_MESSAGE pStubMsg );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrContextHandleSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
|
|
|
|
|
|
|
|
RPCRTAPI NDR_SCONTEXT RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrContextHandleInitialize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrServerContextNewMarshall( PMIDL_STUB_MESSAGE pStubMsg, NDR_SCONTEXT ContextHandle,
|
|
|
|
NDR_RUNDOWN RundownRoutine, PFORMAT_STRING pFormat );
|
|
|
|
|
|
|
|
RPCRTAPI NDR_SCONTEXT RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrServerContextNewUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
2008-06-09 23:36:27 +02:00
|
|
|
RPCRTAPI RPC_STATUS RPC_ENTRY
|
|
|
|
RpcSmDestroyClientContext( void **ContextHandle );
|
|
|
|
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
RpcSsDestroyClientContext( void **ContextHandle );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrSimpleTypeMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrSimpleTypeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, unsigned char FormatChar );
|
|
|
|
|
2009-01-23 16:09:18 +01:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
|
|
|
NdrByteCountPointerMarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
|
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
|
|
|
NdrByteCountPointerUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrByteCountPointerBufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrByteCountPointerFree( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
|
|
|
|
|
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
|
|
|
NdrRangeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc );
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
/* while MS declares each prototype separately, I prefer to use macros for this kind of thing instead */
|
2002-10-22 02:41:17 +02:00
|
|
|
#define SIMPLE_TYPE_MARSHAL(type) \
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY \
|
|
|
|
Ndr##type##Marshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
|
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY \
|
|
|
|
Ndr##type##Unmarshall( PMIDL_STUB_MESSAGE pStubMsg, unsigned char** ppMemory, PFORMAT_STRING pFormat, unsigned char fMustAlloc ); \
|
|
|
|
RPCRTAPI void RPC_ENTRY \
|
|
|
|
Ndr##type##BufferSize( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat ); \
|
2006-11-08 23:44:33 +01:00
|
|
|
RPCRTAPI ULONG RPC_ENTRY \
|
2002-10-22 02:41:17 +02:00
|
|
|
Ndr##type##MemorySize( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
|
|
|
|
|
|
|
#define TYPE_MARSHAL(type) \
|
|
|
|
SIMPLE_TYPE_MARSHAL(type) \
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY \
|
|
|
|
Ndr##type##Free( PMIDL_STUB_MESSAGE pStubMsg, unsigned char* pMemory, PFORMAT_STRING pFormat );
|
|
|
|
|
|
|
|
TYPE_MARSHAL(Pointer)
|
|
|
|
TYPE_MARSHAL(SimpleStruct)
|
|
|
|
TYPE_MARSHAL(ConformantStruct)
|
|
|
|
TYPE_MARSHAL(ConformantVaryingStruct)
|
|
|
|
TYPE_MARSHAL(ComplexStruct)
|
|
|
|
TYPE_MARSHAL(FixedArray)
|
|
|
|
TYPE_MARSHAL(ConformantArray)
|
|
|
|
TYPE_MARSHAL(ConformantVaryingArray)
|
|
|
|
TYPE_MARSHAL(VaryingArray)
|
|
|
|
TYPE_MARSHAL(ComplexArray)
|
|
|
|
TYPE_MARSHAL(EncapsulatedUnion)
|
|
|
|
TYPE_MARSHAL(NonEncapsulatedUnion)
|
|
|
|
TYPE_MARSHAL(XmitOrRepAs)
|
|
|
|
TYPE_MARSHAL(UserMarshal)
|
|
|
|
TYPE_MARSHAL(InterfacePointer)
|
|
|
|
|
2002-10-22 02:41:17 +02:00
|
|
|
SIMPLE_TYPE_MARSHAL(ConformantString)
|
|
|
|
SIMPLE_TYPE_MARSHAL(NonConformantString)
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
#undef TYPE_MARSHAL
|
2002-10-22 02:41:17 +02:00
|
|
|
#undef SIMPLE_TYPE_MARSHAL
|
2001-10-14 18:15:37 +02:00
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrCorrelationInitialize( PMIDL_STUB_MESSAGE pStubMsg, void *pMemory, ULONG CacheSize, ULONG flags );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrCorrelationPass( PMIDL_STUB_MESSAGE pStubMsg );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrCorrelationFree( PMIDL_STUB_MESSAGE pStubMsg );
|
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, LONG NumberParams );
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
#define USER_MARSHAL_FC_BYTE 1
|
|
|
|
#define USER_MARSHAL_FC_CHAR 2
|
|
|
|
#define USER_MARSHAL_FC_SMALL 3
|
|
|
|
#define USER_MARSHAL_FC_USMALL 4
|
|
|
|
#define USER_MARSHAL_FC_WCHAR 5
|
|
|
|
#define USER_MARSHAL_FC_SHORT 6
|
|
|
|
#define USER_MARSHAL_FC_USHORT 7
|
|
|
|
#define USER_MARSHAL_FC_LONG 8
|
|
|
|
#define USER_MARSHAL_FC_ULONG 9
|
|
|
|
#define USER_MARSHAL_FC_FLOAT 10
|
|
|
|
#define USER_MARSHAL_FC_HYPER 11
|
|
|
|
#define USER_MARSHAL_FC_DOUBLE 12
|
|
|
|
|
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
|
|
|
NdrUserMarshalSimpleTypeConvert( ULONG *pFlags, unsigned char *pBuffer, unsigned char FormatChar );
|
|
|
|
|
2011-06-01 22:10:58 +02:00
|
|
|
CLIENT_CALL_RETURN RPC_VAR_ENTRY
|
2002-08-09 03:11:39 +02:00
|
|
|
NdrClientCall2( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
2011-06-01 22:10:58 +02:00
|
|
|
CLIENT_CALL_RETURN RPC_VAR_ENTRY
|
2002-08-09 03:11:39 +02:00
|
|
|
NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
2011-06-01 22:10:58 +02:00
|
|
|
CLIENT_CALL_RETURN RPC_VAR_ENTRY
|
2005-11-02 11:55:27 +01:00
|
|
|
NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
2011-06-01 22:10:58 +02:00
|
|
|
CLIENT_CALL_RETURN RPC_VAR_ENTRY
|
2007-12-17 12:51:48 +01:00
|
|
|
NdrDcomAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
2002-08-09 03:11:39 +02:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrServerCall2( PRPC_MESSAGE pRpcMsg );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrServerCall( PRPC_MESSAGE pRpcMsg );
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrAsyncServerCall( PRPC_MESSAGE pRpcMsg );
|
2002-08-09 03:11:39 +02:00
|
|
|
|
2006-11-08 23:44:33 +01:00
|
|
|
RPCRTAPI LONG RPC_ENTRY
|
|
|
|
NdrStubCall2( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
|
|
|
RPCRTAPI LONG RPC_ENTRY
|
|
|
|
NdrStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
|
|
|
RPCRTAPI LONG RPC_ENTRY
|
|
|
|
NdrAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI LONG RPC_ENTRY
|
|
|
|
NdrDcomAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
2002-08-09 03:11:39 +02:00
|
|
|
|
2003-01-31 04:21:11 +01:00
|
|
|
RPCRTAPI void* RPC_ENTRY
|
2008-09-05 23:07:56 +02:00
|
|
|
NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg, SIZE_T Len ) __WINE_ALLOC_SIZE(2);
|
2003-01-31 04:21:11 +01:00
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrClearOutParameters( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, void *ArgAddr );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
|
|
|
RPCRTAPI RPC_STATUS RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NdrMapCommAndFaultStatus( PMIDL_STUB_MESSAGE pStubMsg, ULONG *pCommStatus,
|
|
|
|
ULONG *pFaultStatus, RPC_STATUS Status_ );
|
2005-08-03 16:55:57 +02:00
|
|
|
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI void* RPC_ENTRY
|
2009-01-30 14:46:17 +01:00
|
|
|
NdrOleAllocate( SIZE_T Size ) __WINE_ALLOC_SIZE(1);
|
2001-10-14 18:15:37 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrOleFree( void* NodeToFree );
|
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrClientInitialize( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
|
|
|
|
PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
|
2002-10-19 21:17:19 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
|
2002-10-24 01:36:53 +02:00
|
|
|
PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
|
|
|
NdrServerInitialize( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
|
2002-10-28 21:07:01 +01:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
|
|
|
NdrServerInitializeUnmarshall( PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc, PRPC_MESSAGE pRpcMsg );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrServerInitializeMarshall( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrServerMarshall( struct IRpcStubBuffer *pThis, struct IRpcChannelBuffer *pChannel, PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrServerUnmarshall( struct IRpcChannelBuffer *pChannel, PRPC_MESSAGE pRpcMsg,
|
|
|
|
PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc,
|
|
|
|
PFORMAT_STRING pFormat, void *pParamList );
|
2002-10-22 01:42:01 +02:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
2007-02-07 16:20:45 +01:00
|
|
|
NdrGetBuffer( PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle );
|
2002-10-19 21:17:19 +02:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
2007-02-07 16:20:45 +01:00
|
|
|
NdrFreeBuffer( PMIDL_STUB_MESSAGE pStubMsg );
|
2002-10-22 01:42:01 +02:00
|
|
|
RPCRTAPI unsigned char* RPC_ENTRY
|
2007-02-07 16:20:45 +01:00
|
|
|
NdrSendReceive( PMIDL_STUB_MESSAGE stubmsg, unsigned char *buffer );
|
2002-10-19 21:17:19 +02:00
|
|
|
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI unsigned char * RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NdrNsGetBuffer( PMIDL_STUB_MESSAGE pStubMsg, ULONG BufferLength, RPC_BINDING_HANDLE Handle );
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI unsigned char * RPC_ENTRY
|
|
|
|
NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pBufferEnd, RPC_BINDING_HANDLE *pAutoHandle );
|
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI RPC_STATUS RPC_ENTRY
|
|
|
|
NdrGetDcomProtocolVersion( PMIDL_STUB_MESSAGE pStubMsg, RPC_VERSION *pVersion );
|
|
|
|
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NdrFullPointerXlatInit( ULONG NumberOfPointers, XLAT_SIDE XlatSide );
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrFullPointerXlatFree( PFULL_PTR_XLAT_TABLES pXlatTables );
|
|
|
|
RPCRTAPI int RPC_ENTRY
|
|
|
|
NdrFullPointerQueryPointer( PFULL_PTR_XLAT_TABLES pXlatTables, void *pPointer,
|
2006-11-08 23:44:33 +01:00
|
|
|
unsigned char QueryType, ULONG *pRefId );
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI int RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NdrFullPointerQueryRefId( PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId,
|
2004-03-03 06:25:37 +01:00
|
|
|
unsigned char QueryType, void **ppPointer );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-11-08 23:44:33 +01:00
|
|
|
NdrFullPointerInsertRefId( PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId, void *pPointer );
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI int RPC_ENTRY
|
|
|
|
NdrFullPointerFree( PFULL_PTR_XLAT_TABLES pXlatTables, void *Pointer );
|
|
|
|
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrRpcSsEnableAllocate( PMIDL_STUB_MESSAGE pMessage );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrRpcSsDisableAllocate( PMIDL_STUB_MESSAGE pMessage );
|
|
|
|
RPCRTAPI void RPC_ENTRY
|
|
|
|
NdrRpcSmSetClientToOsf( PMIDL_STUB_MESSAGE pMessage );
|
|
|
|
RPCRTAPI void * RPC_ENTRY
|
2009-01-30 14:46:17 +01:00
|
|
|
NdrRpcSmClientAllocate( SIZE_T Size ) __WINE_ALLOC_SIZE(1);
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrRpcSmClientFree( void *NodeToFree );
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI void * RPC_ENTRY
|
2009-01-30 14:46:17 +01:00
|
|
|
NdrRpcSsDefaultAllocate( SIZE_T Size ) __WINE_ALLOC_SIZE(1);
|
2004-03-03 06:25:37 +01:00
|
|
|
RPCRTAPI void RPC_ENTRY
|
2006-05-26 05:36:03 +02:00
|
|
|
NdrRpcSsDefaultFree( void *NodeToFree );
|
2004-03-03 06:25:37 +01:00
|
|
|
|
2007-12-17 12:51:48 +01:00
|
|
|
RPCRTAPI RPC_STATUS RPC_ENTRY
|
|
|
|
NdrGetUserMarshalInfo( ULONG *pFlags, ULONG InformationLevel, NDR_USER_MARSHAL_INFO *pMarshalInfo );
|
|
|
|
|
2004-03-22 21:38:06 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2000-11-08 06:06:10 +01:00
|
|
|
#endif /*__WINE_RPCNDR_H */
|