📄 myrandplottest_idl_p.c
字号:
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
long nargout;
VARIANT __RPC_FAR *out;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
( VARIANT __RPC_FAR * )out = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[12] );
nargout = *(( long __RPC_FAR * )_StubMsg.Buffer)++;
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((Imyrandplottest*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> getplotcolor(
(Imyrandplottest *) ((CStdStubBuffer *)This)->pvServerObject,
nargout,
out);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 8U + 11U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)out,
&__MIDL_TypeFormatString.Format[24] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Imyrandplottest_myrandplot_Proxy(
Imyrandplottest __RPC_FAR * This,
/* [in] */ long nargout,
/* [out][in] */ VARIANT __RPC_FAR *out,
/* [in] */ VARIANT n)
{
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);
if(!out)
{
RpcRaiseException(RPC_X_NULL_REF_POINTER);
}
RpcTryFinally
{
_StubMsg.BufferLength = 4U + 4U + 15U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)&n,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000] );
NdrProxyGetBuffer(This, &_StubMsg);
*(( long __RPC_FAR * )_StubMsg.Buffer)++ = nargout;
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)&n,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000] );
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[20] );
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
_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[24],
( void __RPC_FAR * )out);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB Imyrandplottest_myrandplot_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
void __RPC_FAR *_p_n;
VARIANT n;
long nargout;
VARIANT __RPC_FAR *out;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
( VARIANT __RPC_FAR * )out = 0;
_p_n = &n;
MIDL_memset(
_p_n,
0,
sizeof( VARIANT ));
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[20] );
nargout = *(( long __RPC_FAR * )_StubMsg.Buffer)++;
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986],
(unsigned char)0 );
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&_p_n,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((Imyrandplottest*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> myrandplot(
(Imyrandplottest *) ((CStdStubBuffer *)This)->pvServerObject,
nargout,
out,
n);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 8U + 11U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)out,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)out,
&__MIDL_TypeFormatString.Format[24] );
NdrUserMarshalFree( &_StubMsg,
(unsigned char __RPC_FAR *)&n,
&__MIDL_TypeFormatString.Format[1000] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Imyrandplottest_setplotcolor_Proxy(
Imyrandplottest __RPC_FAR * This,
/* [in] */ VARIANT color)
{
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,
11);
RpcTryFinally
{
_StubMsg.BufferLength = 8U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)&color,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000] );
NdrProxyGetBuffer(This, &_StubMsg);
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)&color,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000] );
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[32] );
_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 Imyrandplottest_setplotcolor_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
void __RPC_FAR *_p_color;
VARIANT color;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
_p_color = &color;
MIDL_memset(
_p_color,
0,
sizeof( VARIANT ));
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[32] );
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&_p_color,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((Imyrandplottest*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> setplotcolor((Imyrandplottest *) ((CStdStubBuffer *)This)->pvServerObject,color);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrUserMarshalFree( &_StubMsg,
(unsigned char __RPC_FAR *)&color,
&__MIDL_TypeFormatString.Format[1000] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE Imyrandplottest_get_randplotcolor_Proxy(
Imyrandplottest __RPC_FAR * This,
/* [retval][out] */ VARIANT __RPC_FAR *randplotcolor)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
if(randplotcolor)
{
MIDL_memset(
randplotcolor,
0,
sizeof( VARIANT ));
}
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
12);
if(!randplotcolor)
{
RpcRaiseException(RPC_X_NULL_REF_POINTER);
}
RpcTryFinally
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -