📄 opc_ae_p.c
字号:
dwBufferTime = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
dwMaxSize = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
hClientSubscription = *(( OPCHANDLE __RPC_FAR * )_StubMsg.Buffer)++;
NdrSimpleStructUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&riid,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[58],
(unsigned char)0 );
ppUnk = &_M1;
_M1 = 0;
pdwRevisedBufferTime = &_M2;
pdwRevisedMaxSize = &_M3;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> CreateEventSubscription(
(IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject,
bActive,
dwBufferTime,
dwMaxSize,
hClientSubscription,
riid,
ppUnk,
pdwRevisedBufferTime,
pdwRevisedMaxSize);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 0U + 4U + 4U + 4U;
_StubMsg.MaxCount = (unsigned long) riid;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppUnk,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[70] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
_StubMsg.MaxCount = (unsigned long) riid;
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppUnk,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[70] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = *pdwRevisedBufferTime;
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = *pdwRevisedMaxSize;
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
_StubMsg.MaxCount = (unsigned long) riid;
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)ppUnk,
&__MIDL_TypeFormatString.Format[70] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IOPCEventServer_QueryAvailableFilters_Proxy(
IOPCEventServer __RPC_FAR * This,
/* [out] */ DWORD __RPC_FAR *pdwFilterMask)
{
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,
5);
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[32] );
*pdwFilterMask = *(( DWORD __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[80],
( void __RPC_FAR * )pdwFilterMask);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IOPCEventServer_QueryAvailableFilters_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
DWORD _M4;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
DWORD __RPC_FAR *pdwFilterMask;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pdwFilterMask = 0;
RpcTryFinally
{
pdwFilterMask = &_M4;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> QueryAvailableFilters((IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject,pdwFilterMask);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = *pdwFilterMask;
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IOPCEventServer_QueryEventCategories_Proxy(
IOPCEventServer __RPC_FAR * This,
/* [in] */ DWORD dwEventType,
/* [out] */ DWORD __RPC_FAR *pdwCount,
/* [size_is][size_is][out] */ DWORD __RPC_FAR *__RPC_FAR *ppdwEventCategories,
/* [size_is][size_is][out] */ LPWSTR __RPC_FAR *__RPC_FAR *ppszEventCategoryDescs)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppdwEventCategories = 0;
*ppszEventCategoryDescs = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
6);
RpcTryFinally
{
_StubMsg.BufferLength = 4U;
NdrProxyGetBuffer(This, &_StubMsg);
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = dwEventType;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[38] );
*pdwCount = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppdwEventCategories,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[84],
(unsigned char)0 );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppszEventCategoryDescs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[102],
(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[80],
( void __RPC_FAR * )pdwCount);
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[84],
( void __RPC_FAR * )ppdwEventCategories);
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[102],
( void __RPC_FAR * )ppszEventCategoryDescs);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IOPCEventServer_QueryEventCategories_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
DWORD _M7;
DWORD __RPC_FAR *_M8;
LPWSTR __RPC_FAR *_M9;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
DWORD dwEventType;
DWORD __RPC_FAR *pdwCount;
DWORD __RPC_FAR *__RPC_FAR *ppdwEventCategories;
LPWSTR __RPC_FAR *__RPC_FAR *ppszEventCategoryDescs;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pdwCount = 0;
ppdwEventCategories = 0;
ppszEventCategoryDescs = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[38] );
dwEventType = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
pdwCount = &_M7;
ppdwEventCategories = &_M8;
_M8 = 0;
ppszEventCategoryDescs = &_M9;
_M9 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> QueryEventCategories(
(IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject,
dwEventType,
pdwCount,
ppdwEventCategories,
ppszEventCategoryDescs);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 8U + 14U + 7U;
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppdwEventCategories,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[84] );
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppszEventCategoryDescs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[102] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = *pdwCount;
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppdwEventCategories,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[84] );
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppszEventCategoryDescs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[102] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -