mirror of
https://github.com/reactos/reactos.git
synced 2025-05-13 14:20:31 +00:00
- Sync the header with Wine, it's vital for the new rpcrt4 imported.
svn path=/trunk/; revision=31905
This commit is contained in:
parent
78f6ee1af6
commit
cd36a05851
1 changed files with 70 additions and 6 deletions
|
@ -137,6 +137,8 @@ struct _FULL_PTR_XLAT_TABLES;
|
||||||
struct NDR_ALLOC_ALL_NODES_CONTEXT;
|
struct NDR_ALLOC_ALL_NODES_CONTEXT;
|
||||||
struct NDR_POINTER_QUEUE_STATE;
|
struct NDR_POINTER_QUEUE_STATE;
|
||||||
|
|
||||||
|
typedef unsigned char *RPC_BUFPTR;
|
||||||
|
typedef unsigned long RPC_LENGTH;
|
||||||
typedef void (__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE *);
|
typedef void (__RPC_USER *EXPR_EVAL)(struct _MIDL_STUB_MESSAGE *);
|
||||||
typedef const unsigned char *PFORMAT_STRING;
|
typedef const unsigned char *PFORMAT_STRING;
|
||||||
|
|
||||||
|
@ -453,6 +455,25 @@ typedef struct _SCONTEXT_QUEUE {
|
||||||
NDR_SCONTEXT *ArrayOfObjects;
|
NDR_SCONTEXT *ArrayOfObjects;
|
||||||
} SCONTEXT_QUEUE, *PSCONTEXT_QUEUE;
|
} SCONTEXT_QUEUE, *PSCONTEXT_QUEUE;
|
||||||
|
|
||||||
|
typedef struct _NDR_USER_MARSHAL_INFO_LEVEL1
|
||||||
|
{
|
||||||
|
void *Buffer;
|
||||||
|
ULONG BufferSize;
|
||||||
|
void * (__RPC_API *pfnAllocate)(size_t);
|
||||||
|
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;
|
||||||
|
|
||||||
/* Context Handles */
|
/* Context Handles */
|
||||||
|
|
||||||
RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
|
RPCRTAPI RPC_BINDING_HANDLE RPC_ENTRY
|
||||||
|
@ -563,11 +584,34 @@ SIMPLE_TYPE_MARSHAL(NonConformantString)
|
||||||
#undef TYPE_MARSHAL
|
#undef TYPE_MARSHAL
|
||||||
#undef SIMPLE_TYPE_MARSHAL
|
#undef SIMPLE_TYPE_MARSHAL
|
||||||
|
|
||||||
|
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 );
|
||||||
|
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, LONG NumberParams );
|
NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, LONG NumberParams );
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
NdrConvert( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat );
|
||||||
|
|
||||||
|
#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 );
|
||||||
|
|
||||||
/* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
|
/* Note: this should return a CLIENT_CALL_RETURN, but calling convention for
|
||||||
* returning structures/unions is different between Windows and gcc on i386. */
|
* returning structures/unions is different between Windows and gcc on i386. */
|
||||||
LONG_PTR RPC_VAR_ENTRY
|
LONG_PTR RPC_VAR_ENTRY
|
||||||
|
@ -576,11 +620,15 @@ LONG_PTR RPC_VAR_ENTRY
|
||||||
NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
NdrClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
||||||
LONG_PTR RPC_VAR_ENTRY
|
LONG_PTR RPC_VAR_ENTRY
|
||||||
NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
NdrAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
||||||
|
LONG_PTR RPC_VAR_ENTRY
|
||||||
|
NdrDcomAsyncClientCall( PMIDL_STUB_DESC pStubDescriptor, PFORMAT_STRING pFormat, ... );
|
||||||
|
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrServerCall2( PRPC_MESSAGE pRpcMsg );
|
NdrServerCall2( PRPC_MESSAGE pRpcMsg );
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrServerCall( PRPC_MESSAGE pRpcMsg );
|
NdrServerCall( PRPC_MESSAGE pRpcMsg );
|
||||||
|
RPCRTAPI void RPC_ENTRY
|
||||||
|
NdrAsyncServerCall( PRPC_MESSAGE pRpcMsg );
|
||||||
|
|
||||||
RPCRTAPI LONG RPC_ENTRY
|
RPCRTAPI LONG RPC_ENTRY
|
||||||
NdrStubCall2( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
NdrStubCall2( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
||||||
|
@ -588,6 +636,8 @@ RPCRTAPI LONG RPC_ENTRY
|
||||||
NdrStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
NdrStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
||||||
RPCRTAPI LONG RPC_ENTRY
|
RPCRTAPI LONG RPC_ENTRY
|
||||||
NdrAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
NdrAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
||||||
|
RPCRTAPI LONG RPC_ENTRY
|
||||||
|
NdrDcomAsyncStubCall( struct IRpcStubBuffer* pThis, struct IRpcChannelBuffer* pChannel, PRPC_MESSAGE pRpcMsg, DWORD * pdwStubPhase );
|
||||||
|
|
||||||
RPCRTAPI void* RPC_ENTRY
|
RPCRTAPI void* RPC_ENTRY
|
||||||
NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg, size_t Len );
|
NdrAllocate( PMIDL_STUB_MESSAGE pStubMsg, size_t Len );
|
||||||
|
@ -604,11 +654,26 @@ RPCRTAPI void* RPC_ENTRY
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrOleFree( void* NodeToFree );
|
NdrOleFree( void* NodeToFree );
|
||||||
|
|
||||||
|
RPCRTAPI void RPC_ENTRY
|
||||||
|
NdrClientInitialize( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
|
||||||
|
PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
|
NdrClientInitializeNew( PRPC_MESSAGE pRpcMessage, PMIDL_STUB_MESSAGE pStubMsg,
|
||||||
PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
|
PMIDL_STUB_DESC pStubDesc, unsigned int ProcNum );
|
||||||
|
RPCRTAPI unsigned char* RPC_ENTRY
|
||||||
|
NdrServerInitialize( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
|
||||||
RPCRTAPI unsigned char* RPC_ENTRY
|
RPCRTAPI unsigned char* RPC_ENTRY
|
||||||
NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
|
NdrServerInitializeNew( PRPC_MESSAGE pRpcMsg, PMIDL_STUB_MESSAGE pStubMsg, PMIDL_STUB_DESC pStubDesc );
|
||||||
|
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 );
|
||||||
RPCRTAPI unsigned char* RPC_ENTRY
|
RPCRTAPI unsigned char* RPC_ENTRY
|
||||||
NdrGetBuffer( PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle );
|
NdrGetBuffer( PMIDL_STUB_MESSAGE stubmsg, ULONG buflen, RPC_BINDING_HANDLE handle );
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
|
@ -621,6 +686,9 @@ RPCRTAPI unsigned char * RPC_ENTRY
|
||||||
RPCRTAPI unsigned char * RPC_ENTRY
|
RPCRTAPI unsigned char * RPC_ENTRY
|
||||||
NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pBufferEnd, RPC_BINDING_HANDLE *pAutoHandle );
|
NdrNsSendReceive( PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pBufferEnd, RPC_BINDING_HANDLE *pAutoHandle );
|
||||||
|
|
||||||
|
RPCRTAPI RPC_STATUS RPC_ENTRY
|
||||||
|
NdrGetDcomProtocolVersion( PMIDL_STUB_MESSAGE pStubMsg, RPC_VERSION *pVersion );
|
||||||
|
|
||||||
RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
|
RPCRTAPI PFULL_PTR_XLAT_TABLES RPC_ENTRY
|
||||||
NdrFullPointerXlatInit( ULONG NumberOfPointers, XLAT_SIDE XlatSide );
|
NdrFullPointerXlatInit( ULONG NumberOfPointers, XLAT_SIDE XlatSide );
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
|
@ -651,12 +719,8 @@ RPCRTAPI void * RPC_ENTRY
|
||||||
RPCRTAPI void RPC_ENTRY
|
RPCRTAPI void RPC_ENTRY
|
||||||
NdrRpcSsDefaultFree( void *NodeToFree );
|
NdrRpcSsDefaultFree( void *NodeToFree );
|
||||||
|
|
||||||
|
RPCRTAPI RPC_STATUS RPC_ENTRY
|
||||||
#define RPC_BAD_STUB_DATA_EXCEPTION_FILTER \
|
NdrGetUserMarshalInfo( ULONG *pFlags, ULONG InformationLevel, NDR_USER_MARSHAL_INFO *pMarshalInfo );
|
||||||
( (RpcExceptionCode() == STATUS_ACCESS_VIOLATION) || \
|
|
||||||
(RpcExceptionCode() == STATUS_DATATYPE_MISALIGNMENT) || \
|
|
||||||
(RpcExceptionCode() == RPC_X_BAD_STUB_DATA) || \
|
|
||||||
(RpcExceptionCode() == RPC_S_INVALID_BOUND) )
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue