📄 pizzaorder_p.c
字号:
HRESULT STDMETHODCALLTYPE IPizzaOrderTaker_RemoveTopping_Proxy(
IPizzaOrderTaker __RPC_FAR * This,
/* [in] */ Topping eRemTopping)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
7);
RpcTryFinally
{
_StubMsg.BufferLength = 2U;
NdrProxyGetBuffer(This, &_StubMsg);
NdrSimpleTypeMarshall(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( unsigned char __RPC_FAR * )&eRemTopping,
13);
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[2] );
_RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrProxyFreeBuffer(This, &_StubMsg);
}
RpcEndFinally
}
RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
{
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IPizzaOrderTaker_RemoveTopping_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
Topping eRemTopping;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[2] );
NdrSimpleTypeUnmarshall(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( unsigned char __RPC_FAR * )&eRemTopping,
13);
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> RemoveTopping((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject,eRemTopping);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IPizzaOrderTaker_GetNumToppings_Proxy(
IPizzaOrderTaker __RPC_FAR * This,
/* [out] */ ULONG __RPC_FAR *pulNumToppings)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
8);
RpcTryFinally
{
_StubMsg.BufferLength = 0U;
NdrProxyGetBuffer(This, &_StubMsg);
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[18] );
*pulNumToppings = *(( ULONG __RPC_FAR * )_StubMsg.Buffer)++;
_RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrProxyFreeBuffer(This, &_StubMsg);
}
RpcEndFinally
}
RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
{
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[4],
( void __RPC_FAR * )pulNumToppings);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IPizzaOrderTaker_GetNumToppings_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
ULONG _M1;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
ULONG __RPC_FAR *pulNumToppings;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pulNumToppings = 0;
RpcTryFinally
{
pulNumToppings = &_M1;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetNumToppings((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject,pulNumToppings);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( ULONG __RPC_FAR * )_StubMsg.Buffer)++ = *pulNumToppings;
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IPizzaOrderTaker_GetTopping_Proxy(
IPizzaOrderTaker __RPC_FAR * This,
/* [in] */ ULONG ulListPos,
/* [out] */ Topping __RPC_FAR *peTopping,
/* [out] */ ToppingSize __RPC_FAR *peToppingSize)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
9);
RpcTryFinally
{
_StubMsg.BufferLength = 4U;
NdrProxyGetBuffer(This, &_StubMsg);
*(( ULONG __RPC_FAR * )_StubMsg.Buffer)++ = ulListPos;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[24] );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&peTopping,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[0],
(unsigned char)0 );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&peToppingSize,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[0],
(unsigned char)0 );
_RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrProxyFreeBuffer(This, &_StubMsg);
}
RpcEndFinally
}
RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
{
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[0],
( void __RPC_FAR * )peTopping);
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[0],
( void __RPC_FAR * )peToppingSize);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IPizzaOrderTaker_GetTopping_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
Topping _M2;
ToppingSize _M3;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
Topping __RPC_FAR *peTopping;
ToppingSize __RPC_FAR *peToppingSize;
ULONG ulListPos;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
peTopping = 0;
peToppingSize = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[24] );
ulListPos = *(( ULONG __RPC_FAR * )_StubMsg.Buffer)++;
peTopping = &_M2;
peToppingSize = &_M3;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetTopping(
(IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject,
ulListPos,
peTopping,
peToppingSize);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 2U + 2U + 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)peTopping,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[0] );
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)peToppingSize,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[0] );
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IPizzaOrderTaker_GetPizzaPrice_Proxy(
IPizzaOrderTaker __RPC_FAR * This,
/* [out] */ ULONG __RPC_FAR *pulPrice)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
10);
RpcTryFinally
{
_StubMsg.BufferLength = 0U;
NdrProxyGetBuffer(This, &_StubMsg);
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[18] );
*pulPrice = *(( ULONG __RPC_FAR * )_StubMsg.Buffer)++;
_RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrProxyFreeBuffer(This, &_StubMsg);
}
RpcEndFinally
}
RpcExcept(_StubMsg.dwStubPhase != PROXY_SENDRECEIVE)
{
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[4],
( void __RPC_FAR * )pulPrice);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IPizzaOrderTaker_GetPizzaPrice_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
ULONG _M4;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
ULONG __RPC_FAR *pulPrice;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pulPrice = 0;
RpcTryFinally
{
pulPrice = &_M4;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetPizzaPrice((IPizzaOrderTaker *) ((CStdStubBuffer *)This)->pvServerObject,pulPrice);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( ULONG __RPC_FAR * )_StubMsg.Buffer)++ = *pulPrice;
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IPizzaOrderTaker_OrderPizza_Proxy(
IPizzaOrderTaker __RPC_FAR * This,
/* [in] */ DeliveryInfo __RPC_FAR *pDeliveryInfo,
/* [in] */ CreditCard eCreditCardType,
/* [in] */ BSTR bstrCreditCardNum,
/* [out] */ ULONG __RPC_FAR *pulPrice)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
NdrProxyInitialize(
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -