📄 opc_ae_p.c
字号:
HRESULT STDMETHODCALLTYPE IOPCEventServer_QuerySourceConditions_Proxy(
IOPCEventServer __RPC_FAR * This,
/* [in] */ LPWSTR szSource,
/* [out] */ DWORD __RPC_FAR *pdwCount,
/* [size_is][size_is][out] */ LPWSTR __RPC_FAR *__RPC_FAR *ppszConditionNames)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppszConditionNames = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
9);
RpcTryFinally
{
_StubMsg.BufferLength = 12U;
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)szSource,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[142] );
NdrProxyGetBuffer(This, &_StubMsg);
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)szSource,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[142] );
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[66] );
*pdwCount = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppszConditionNames,
(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[102],
( void __RPC_FAR * )ppszConditionNames);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IOPCEventServer_QuerySourceConditions_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
DWORD _M21;
LPWSTR __RPC_FAR *_M22;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
DWORD __RPC_FAR *pdwCount;
LPWSTR __RPC_FAR *__RPC_FAR *ppszConditionNames;
LPWSTR szSource;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
szSource = 0;
pdwCount = 0;
ppszConditionNames = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[66] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&szSource,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[142],
(unsigned char)0 );
pdwCount = &_M21;
ppszConditionNames = &_M22;
_M22 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> QuerySourceConditions(
(IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject,
szSource,
pdwCount,
ppszConditionNames);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 8U + 7U;
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppszConditionNames,
(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 *)ppszConditionNames,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[102] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)ppszConditionNames,
&__MIDL_TypeFormatString.Format[102] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IOPCEventServer_QueryEventAttributes_Proxy(
IOPCEventServer __RPC_FAR * This,
/* [in] */ DWORD dwEventCategory,
/* [out] */ DWORD __RPC_FAR *pdwCount,
/* [size_is][size_is][out] */ DWORD __RPC_FAR *__RPC_FAR *ppdwAttrIDs,
/* [size_is][size_is][out] */ LPWSTR __RPC_FAR *__RPC_FAR *ppszAttrDescs,
/* [size_is][size_is][out] */ VARTYPE __RPC_FAR *__RPC_FAR *ppvtAttrTypes)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppdwAttrIDs = 0;
*ppszAttrDescs = 0;
*ppvtAttrTypes = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
10);
RpcTryFinally
{
_StubMsg.BufferLength = 4U;
NdrProxyGetBuffer(This, &_StubMsg);
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = dwEventCategory;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[80] );
*pdwCount = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppdwAttrIDs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[84],
(unsigned char)0 );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppszAttrDescs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[102],
(unsigned char)0 );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppvtAttrTypes,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[144],
(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 * )ppdwAttrIDs);
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[102],
( void __RPC_FAR * )ppszAttrDescs);
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[144],
( void __RPC_FAR * )ppvtAttrTypes);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IOPCEventServer_QueryEventAttributes_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
DWORD _M26;
DWORD __RPC_FAR *_M27;
LPWSTR __RPC_FAR *_M28;
VARTYPE __RPC_FAR *_M29;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
DWORD dwEventCategory;
DWORD __RPC_FAR *pdwCount;
DWORD __RPC_FAR *__RPC_FAR *ppdwAttrIDs;
LPWSTR __RPC_FAR *__RPC_FAR *ppszAttrDescs;
VARTYPE __RPC_FAR *__RPC_FAR *ppvtAttrTypes;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pdwCount = 0;
ppdwAttrIDs = 0;
ppszAttrDescs = 0;
ppvtAttrTypes = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[80] );
dwEventCategory = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
pdwCount = &_M26;
ppdwAttrIDs = &_M27;
_M27 = 0;
ppszAttrDescs = &_M28;
_M28 = 0;
ppvtAttrTypes = &_M29;
_M29 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> QueryEventAttributes(
(IOPCEventServer *) ((CStdStubBuffer *)This)->pvServerObject,
dwEventCategory,
pdwCount,
ppdwAttrIDs,
ppszAttrDescs,
ppvtAttrTypes);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 8U + 14U + 13U + 10U;
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppdwAttrIDs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[84] );
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppszAttrDescs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[102] );
_StubMsg.MaxCount = pdwCount ? *pdwCount : 0;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppvtAttrTypes,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[144] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -