📄 _attributedatldicesvr_p.c
字号:
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[16] );
_StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 1) & ~ 0x1);
if(_StubMsg.Buffer + 2 > _StubMsg.BufferEnd)
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
newVal = *(( SHORT * )_StubMsg.Buffer)++;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IAttributedATLDiceControl*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> put_TimesToRoll((IAttributedATLDiceControl *) ((CStdStubBuffer *)This)->pvServerObject,newVal);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 8;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
_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);
}
/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE IAttributedATLDiceControl_RollDice_Proxy(
IAttributedATLDiceControl * This)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
NdrProxyInitialize(
( void * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
13);
RpcTryFinally
{
_StubMsg.BufferLength = 0;
NdrProxyGetBuffer(This, &_StubMsg);
NdrProxySendReceive(This, &_StubMsg);
_StubMsg.BufferStart = (unsigned char *) _RpcMessage.Buffer;
_StubMsg.BufferEnd = _StubMsg.BufferStart + _RpcMessage.BufferLength;
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[20] );
_StubMsg.Buffer = (unsigned char *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
if(_StubMsg.Buffer + 4 > _StubMsg.BufferEnd)
{
RpcRaiseException(RPC_X_BAD_STUB_DATA);
}
_RetVal = *(( HRESULT * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrProxyFreeBuffer(This, &_StubMsg);
}
RpcEndFinally
}
RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
{
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IAttributedATLDiceControl_RollDice_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
RpcTryFinally
{
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IAttributedATLDiceControl*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> RollDice((IAttributedATLDiceControl *) ((CStdStubBuffer *)This)->pvServerObject);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 8;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
_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 */
0x8, /* FC_LONG */
/* 2 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 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 */
0x51, /* FC_OUT_PARAM */
0x1, /* x86 stack size = 1 */
/* 12 */ NdrFcShort( 0x6 ), /* Type Offset=6 */
/* 14 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 16 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x6, /* FC_SHORT */
/* 18 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 20 */ 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 */ 0x8, /* FC_LONG */
0x5c, /* FC_PAD */
/* 6 */
0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
/* 8 */ 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: IAttributedATLDiceControl, ver. 0.0,
GUID={0x5321A066,0x9E3A,0x4412,{0xA1,0x1A,0x32,0xD5,0xED,0x06,0x01,0x46}} */
#pragma code_seg(".orpc")
static const unsigned short IAttributedATLDiceControl_FormatStringOffsetTable[] =
{
(unsigned short) -1,
(unsigned short) -1,
(unsigned short) -1,
(unsigned short) -1,
0,
4,
10,
16,
10,
16,
20
};
static const MIDL_STUBLESS_PROXY_INFO IAttributedATLDiceControl_ProxyInfo =
{
&Object_StubDesc,
__MIDL_ProcFormatString.Format,
&IAttributedATLDiceControl_FormatStringOffsetTable[-3],
0,
0,
0
};
static const MIDL_SERVER_INFO IAttributedATLDiceControl_ServerInfo =
{
&Object_StubDesc,
0,
__MIDL_ProcFormatString.Format,
&IAttributedATLDiceControl_FormatStringOffsetTable[-3],
0,
0,
0,
0};
CINTERFACE_PROXY_VTABLE(14) _IAttributedATLDiceControlProxyVtbl =
{
&IID_IAttributedATLDiceControl,
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 */ ,
IAttributedATLDiceControl_put_BackColor_Proxy ,
IAttributedATLDiceControl_get_BackColor_Proxy ,
IAttributedATLDiceControl_get_DiceColor_Proxy ,
IAttributedATLDiceControl_put_DiceColor_Proxy ,
IAttributedATLDiceControl_get_TimesToRoll_Proxy ,
IAttributedATLDiceControl_put_TimesToRoll_Proxy ,
IAttributedATLDiceControl_RollDice_Proxy
};
static const PRPC_STUB_FUNCTION IAttributedATLDiceControl_table[] =
{
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
IAttributedATLDiceControl_put_BackColor_Stub,
IAttributedATLDiceControl_get_BackColor_Stub,
IAttributedATLDiceControl_get_DiceColor_Stub,
IAttributedATLDiceControl_put_DiceColor_Stub,
IAttributedATLDiceControl_get_TimesToRoll_Stub,
IAttributedATLDiceControl_put_TimesToRoll_Stub,
IAttributedATLDiceControl_RollDice_Stub
};
CInterfaceStubVtbl _IAttributedATLDiceControlStubVtbl =
{
&IID_IAttributedATLDiceControl,
&IAttributedATLDiceControl_ServerInfo,
14,
&IAttributedATLDiceControl_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 * __AttributedATLDiceSvr_ProxyVtblList[] =
{
( CInterfaceProxyVtbl *) &_IAttributedATLDiceControlProxyVtbl,
0
};
const CInterfaceStubVtbl * __AttributedATLDiceSvr_StubVtblList[] =
{
( CInterfaceStubVtbl *) &_IAttributedATLDiceControlStubVtbl,
0
};
PCInterfaceName const __AttributedATLDiceSvr_InterfaceNamesList[] =
{
"IAttributedATLDiceControl",
0
};
const IID * __AttributedATLDiceSvr_BaseIIDList[] =
{
&IID_IDispatch,
0
};
#define __AttributedATLDiceSvr_CHECK_IID(n) IID_GENERIC_CHECK_IID( __AttributedATLDiceSvr, pIID, n)
int __stdcall __AttributedATLDiceSvr_IID_Lookup( const IID * pIID, int * pIndex )
{
if(!__AttributedATLDiceSvr_CHECK_IID(0))
{
*pIndex = 0;
return 1;
}
return 0;
}
const ExtendedProxyFileInfo _AttributedATLDiceSvr_ProxyFileInfo =
{
(PCInterfaceProxyVtblList *) & __AttributedATLDiceSvr_ProxyVtblList,
(PCInterfaceStubVtblList *) & __AttributedATLDiceSvr_StubVtblList,
(const PCInterfaceName * ) & __AttributedATLDiceSvr_InterfaceNamesList,
(const IID ** ) & __AttributedATLDiceSvr_BaseIIDList,
& __AttributedATLDiceSvr_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 + -