40 memset(pEsMsg, 0,
sizeof(*pEsMsg));
67 pEsMsg->
Alloc = AllocFn;
68 pEsMsg->
Write = WriteFn;
94 pEsMsg->
Read = ReadFn;
118 pEsMsg->
Alloc = AllocFn;
119 pEsMsg->
Write = WriteFn;
120 pEsMsg->
Read = ReadFn;
133 TRACE(
"(%p, %u, %d, %p, %u, %p)\n",
Handle, HandleStyle,
Operation,
Buffer,
224 TRACE(
"(%p, %p, %p)\n",
Buffer, pEncodedSize, pHandle);
279 unsigned int tmpsize =
size;
280 TRACE(
"%d with incremental handle\n",
size);
284 ERR(
"not enough bytes allocated - requested %d, got %d\n",
size, tmpsize);
290 TRACE(
"%d with fixed buffer handle\n",
size);
300 unsigned int tmpsize =
size;
301 TRACE(
"%d from incremental handle\n",
size);
305 ERR(
"not enough bytes read - requested %d, got %d\n",
size, tmpsize);
311 TRACE(
"%d from fixed or dynamic buffer handle\n",
size);
326 TRACE(
"%d to incremental handle\n",
size);
331 TRACE(
"%d to dynamic or fixed buffer handle\n",
size);
406 unsigned short stack_size;
411 unsigned int number_of_params;
414 TRACE(
"Handle %p, pStubDesc %p, pFormat %p, ...\n",
Handle, pStubDesc, pFormat);
417 if (pStubDesc->
Version > 0x50002)
419 FIXME(
"Incompatible stub description version: 0x%x\n", pStubDesc->
Version);
454 ERR(
"bad explicit binding handle type (0x%02x)\n", pProcHeader->
handle_type);
459 TRACE(
"stack size: 0x%x\n", stack_size);
462 memset(&rpcMsg, 0,
sizeof(rpcMsg));
465 pEsMsg->
StubMsg.pfnAllocate = pStubDesc->pfnAllocate;
466 pEsMsg->
StubMsg.pfnFree = pStubDesc->pfnFree;
482 arg_buffer,
sizeof(arg_buffer), &number_of_params );
519 FIXME(
"(%p, %p, %p, %p, %p)\n",
Handle, pPicklingInfo, pStubDesc, pFormatString,
pObject);
525 FIXME(
"(%p, %p, %p, %p, %p)\n",
Handle, pPicklingInfo, pStubDesc, pFormatString,
pObject);
531 FIXME(
"(%p, %p, %p, %p, %p)\n",
Handle, pPicklingInfo, pStubDesc, pFormatString,
pObject);
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
void(__RPC_USER * MIDL_ES_ALLOC)(void *, char **, unsigned int *)
void(__RPC_USER * MIDL_ES_READ)(void *, char **, unsigned int *)
void(__RPC_USER * MIDL_ES_WRITE)(void *, char *, unsigned int)
@ MES_DYNAMIC_BUFFER_HANDLE
@ MES_FIXED_BUFFER_HANDLE
#define memcpy(s1, s2, n)
static void es_data_write(MIDL_ES_MESSAGE *pEsMsg, ULONG size)
RPC_STATUS WINAPI MesHandleFree(handle_t Handle)
static RPC_STATUS validate_mes_buffer_pointer(const char *Buffer)
RPC_STATUS WINAPI MesEncodeIncrementalHandleCreate(void *UserState, MIDL_ES_ALLOC AllocFn, MIDL_ES_WRITE WriteFn, handle_t *pHandle)
static ULONG mes_proc_header_buffer_size(void)
static void init_MIDL_ES_MESSAGE(MIDL_ES_MESSAGE *pEsMsg)
static void mes_proc_header_unmarshal(MIDL_ES_MESSAGE *pEsMsg)
static void mes_proc_header_marshal(MIDL_ES_MESSAGE *pEsMsg)
static void es_data_alloc(MIDL_ES_MESSAGE *pEsMsg, ULONG size)
void RPC_ENTRY NdrMesTypeEncode2(handle_t Handle, const MIDL_TYPE_PICKLING_INFO *pPicklingInfo, const MIDL_STUB_DESC *pStubDesc, PFORMAT_STRING pFormatString, const void *pObject)
RPC_STATUS WINAPI MesBufferHandleReset(handle_t Handle, ULONG HandleStyle, MIDL_ES_CODE Operation, char **Buffer, ULONG BufferSize, ULONG *EncodedSize)
RPC_STATUS WINAPI MesIncrementalHandleReset(handle_t Handle, void *UserState, MIDL_ES_ALLOC AllocFn, MIDL_ES_WRITE WriteFn, MIDL_ES_READ ReadFn, MIDL_ES_CODE Operation)
void RPC_ENTRY NdrMesTypeDecode2(handle_t Handle, const MIDL_TYPE_PICKLING_INFO *pPicklingInfo, const MIDL_STUB_DESC *pStubDesc, PFORMAT_STRING pFormatString, void *pObject)
void RPC_ENTRY NdrMesTypeFree2(handle_t Handle, const MIDL_TYPE_PICKLING_INFO *pPicklingInfo, const MIDL_STUB_DESC *pStubDesc, PFORMAT_STRING pFormatString, void *pObject)
RPC_STATUS RPC_ENTRY MesEncodeFixedBufferHandleCreate(char *Buffer, ULONG BufferSize, ULONG *pEncodedSize, handle_t *pHandle)
RPC_STATUS RPC_ENTRY MesDecodeBufferHandleCreate(char *Buffer, ULONG BufferSize, handle_t *pHandle)
RPC_STATUS WINAPI MesDecodeIncrementalHandleCreate(void *UserState, MIDL_ES_READ ReadFn, handle_t *pHandle)
void WINAPIV NdrMesProcEncodeDecode(handle_t Handle, const MIDL_STUB_DESC *pStubDesc, PFORMAT_STRING pFormat,...)
RPC_STATUS RPC_ENTRY MesEncodeDynBufferHandleCreate(char **Buffer, ULONG *pEncodedSize, handle_t *pHandle)
static void es_data_read(MIDL_ES_MESSAGE *pEsMsg, ULONG size)
void WINAPI NdrFullPointerXlatFree(PFULL_PTR_XLAT_TABLES pXlatTables)
PFULL_PTR_XLAT_TABLES WINAPI NdrFullPointerXlatInit(ULONG NumberOfPointers, XLAT_SIDE XlatSide)
void client_do_args(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, enum stubless_phase phase, void **fpu_args, unsigned short number_of_params, unsigned char *pRetVal)
PFORMAT_STRING convert_old_args(PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, unsigned int stack_size, BOOL object_proc, void *buffer, unsigned int size, unsigned int *count)
struct _NDR_PROC_HEADER_RPC NDR_PROC_HEADER_RPC
struct _NDR_EHD_CONTEXT NDR_EHD_CONTEXT
struct _NDR_EHD_PRIMITIVE NDR_EHD_PRIMITIVE
struct _NDR_PROC_HEADER NDR_PROC_HEADER
struct _NDR_EHD_GENERIC NDR_EHD_GENERIC
RPC_BINDING_HANDLE handle_t
struct _RPC_SYNTAX_IDENTIFIER RPC_SYNTAX_IDENTIFIER
const unsigned char * PFORMAT_STRING
#define RPC_S_INVALID_ARG
#define RPC_X_INVALID_BUFFER
#define RPC_S_OUT_OF_MEMORY
void DECLSPEC_NORETURN WINAPI RpcRaiseException(RPC_STATUS exception)
MIDL_STUB_MESSAGE StubMsg
unsigned char ** pDynBuffer
RPC_SYNTAX_IDENTIFIER InterfaceId
void * RpcInterfaceInformation
struct _FULL_PTR_XLAT_TABLES * FullPtrXlatTables
unsigned char * BufferEnd
const struct _MIDL_STUB_DESC * StubDesc
unsigned char * BufferStart
RPC_SYNTAX_IDENTIFIER InterfaceId
RPC_SYNTAX_IDENTIFIER TransferSyntax
RPC_VERSION SyntaxVersion
unsigned short MajorVersion
unsigned short MinorVersion
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
#define __ms_va_end(list)
#define __ms_va_start(list, arg)
#define RPC_X_WRONG_ES_VERSION
#define RPC_S_UNSUPPORTED_TRANS_SYN
#define RPC_S_INVALID_BOUND
#define RPC_X_BAD_STUB_DATA
#define RPC_X_WRONG_STUB_VERSION
#define RPC_S_INTERNAL_ERROR