📄 _stateful_p.c
字号:
}
RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
{
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[2],
( void * )piTotal);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB ISum_Accumulate_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
SHORT _M1 = 0;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
SHORT iValue;
SHORT *piTotal;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
iValue = 0;
( SHORT * )piTotal = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[10] );
_StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 1) & ~ 0x1);
if(_StubMsg.Buffer + 2 > _StubMsg.BufferEnd)
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
iValue = *(( SHORT * )_StubMsg.Buffer)++;
piTotal = &_M1;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((ISum*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Accumulate(
(ISum *) ((CStdStubBuffer *)This)->pvServerObject,
iValue,
piTotal);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 34;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
_StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 1) & ~ 0x1);
*(( SHORT * )_StubMsg.Buffer)++ = *piTotal;
_StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)(_StubMsg.Buffer - (unsigned char *)_pRpcMessage->Buffer);
}
#if !defined(__RPC_WIN32__)
#error Invalid build platform for this stub.
#endif
static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
{
0,
{
0x4e, /* FC_IN_PARAM_BASETYPE */
0x6, /* FC_SHORT */
/* 2 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x6, /* FC_SHORT */
/* 4 */
0x51, /* FC_OUT_PARAM */
0x1, /* x86 stack size = 1 */
/* 6 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
/* 8 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 10 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x6, /* FC_SHORT */
/* 12 */
0x51, /* FC_OUT_PARAM */
0x1, /* x86 stack size = 1 */
/* 14 */ NdrFcShort( 0x2 ), /* Type Offset=2 */
/* 16 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
0x0
}
};
static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
{
0,
{
NdrFcShort( 0x0 ), /* 0 */
/* 2 */
0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
/* 4 */ 0x6, /* FC_SHORT */
0x5c, /* FC_PAD */
0x0
}
};
/* Object interface: IUnknown, ver. 0.0,
GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: IDispatch, ver. 0.0,
GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: ISum, ver. 0.0,
GUID={0x087A1119,0x8D78,0x42BD,{0x91,0x75,0x4D,0x12,0x0C,0x44,0x5E,0xDA}} */
#pragma code_seg(".orpc")
static const unsigned short ISum_FormatStringOffsetTable[] =
{
(unsigned short) -1,
(unsigned short) -1,
(unsigned short) -1,
(unsigned short) -1,
0,
10
};
static const MIDL_STUBLESS_PROXY_INFO ISum_ProxyInfo =
{
&Object_StubDesc,
__MIDL_ProcFormatString.Format,
&ISum_FormatStringOffsetTable[-3],
0,
0,
0
};
static const MIDL_SERVER_INFO ISum_ServerInfo =
{
&Object_StubDesc,
0,
__MIDL_ProcFormatString.Format,
&ISum_FormatStringOffsetTable[-3],
0,
0,
0,
0};
CINTERFACE_PROXY_VTABLE(9) _ISumProxyVtbl =
{
&IID_ISum,
IUnknown_QueryInterface_Proxy,
IUnknown_AddRef_Proxy,
IUnknown_Release_Proxy ,
0 /* IDispatch_GetTypeInfoCount_Proxy */ ,
0 /* IDispatch_GetTypeInfo_Proxy */ ,
0 /* IDispatch_GetIDsOfNames_Proxy */ ,
0 /* IDispatch_Invoke_Proxy */ ,
ISum_Add_Proxy ,
ISum_Accumulate_Proxy
};
static const PRPC_STUB_FUNCTION ISum_table[] =
{
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
ISum_Add_Stub,
ISum_Accumulate_Stub
};
CInterfaceStubVtbl _ISumStubVtbl =
{
&IID_ISum,
&ISum_ServerInfo,
9,
&ISum_table[-3],
CStdStubBuffer_DELEGATING_METHODS
};
static const MIDL_STUB_DESC Object_StubDesc =
{
0,
NdrOleAllocate,
NdrOleFree,
0,
0,
0,
0,
0,
__MIDL_TypeFormatString.Format,
1, /* -error bounds_check flag */
0x10001, /* Ndr library version */
0,
0x600015b, /* MIDL Version 6.0.347 */
0,
0,
0, /* notify & notify_flag routine table */
0x1, /* MIDL flag */
0, /* cs routines */
0, /* proxy/server info */
0 /* Reserved5 */
};
const CInterfaceProxyVtbl * __Stateful_ProxyVtblList[] =
{
( CInterfaceProxyVtbl *) &_ISumProxyVtbl,
0
};
const CInterfaceStubVtbl * __Stateful_StubVtblList[] =
{
( CInterfaceStubVtbl *) &_ISumStubVtbl,
0
};
PCInterfaceName const __Stateful_InterfaceNamesList[] =
{
"ISum",
0
};
const IID * __Stateful_BaseIIDList[] =
{
&IID_IDispatch,
0
};
#define __Stateful_CHECK_IID(n) IID_GENERIC_CHECK_IID( __Stateful, pIID, n)
int __stdcall __Stateful_IID_Lookup( const IID * pIID, int * pIndex )
{
if(!__Stateful_CHECK_IID(0))
{
*pIndex = 0;
return 1;
}
return 0;
}
const ExtendedProxyFileInfo _Stateful_ProxyFileInfo =
{
(PCInterfaceProxyVtblList *) & __Stateful_ProxyVtblList,
(PCInterfaceStubVtblList *) & __Stateful_StubVtblList,
(const PCInterfaceName * ) & __Stateful_InterfaceNamesList,
(const IID ** ) & __Stateful_BaseIIDList,
& __Stateful_IID_Lookup,
1,
1,
0, /* table of [async_uuid] interfaces */
0, /* Filler1 */
0, /* Filler2 */
0 /* Filler3 */
};
#endif /* !defined(_M_IA64) && !defined(_M_AMD64)*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -