📄 opc_p.c
字号:
/* this ALWAYS GENERATED file contains the proxy stub code */
/* File created by MIDL compiler version 3.00.44 */
/* at Thu May 15 11:11:55 1997
*/
/* Compiler settings for opc.idl:
Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, app_config, c_ext
error checks: none
*/
//@@MIDL_FILE_HEADING( )
#include "rpcproxy.h"
#include "opc.h"
#define TYPE_FORMAT_STRING_SIZE 1475
#define PROC_FORMAT_STRING_SIZE 453
typedef struct _MIDL_TYPE_FORMAT_STRING
{
short Pad;
unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
} MIDL_TYPE_FORMAT_STRING;
typedef struct _MIDL_PROC_FORMAT_STRING
{
short Pad;
unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
} MIDL_PROC_FORMAT_STRING;
extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
/* Standard interface: __MIDL__intf_0000, ver. 0.0,
GUID={0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} */
/* Object interface: IUnknown, ver. 0.0,
GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: IOPCServer, ver. 0.0,
GUID={0x39c13a4d,0x011e,0x11d0,{0x96,0x75,0x00,0x20,0xaf,0xd8,0xad,0xb3}} */
extern const MIDL_STUB_DESC Object_StubDesc;
#pragma code_seg(".orpc")
HRESULT STDMETHODCALLTYPE IOPCServer_AddGroup_Proxy(
IOPCServer __RPC_FAR * This,
/* [string][in] */ LPCWSTR szName,
/* [in] */ BOOL bActive,
/* [in] */ DWORD dwRequestedUpdateRate,
/* [in] */ OPCHANDLE hClientGroup,
/* [in][unique] */ LONG __RPC_FAR *pTimeBias,
/* [in][unique] */ float __RPC_FAR *pPercentDeadband,
/* [in] */ DWORD dwLCID,
/* [out] */ OPCHANDLE __RPC_FAR *phServerGroup,
/* [out] */ DWORD __RPC_FAR *pRevisedUpdateRate,
/* [in] */ REFIID riid,
/* [iid_is][out] */ LPUNKNOWN __RPC_FAR *ppUnk)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppUnk = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
3);
RpcTryFinally
{
_StubMsg.BufferLength = 12U + 10U + 7U + 7U + 14U + 14U + 7U + 0U;
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)szName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2] );
NdrSimpleStructBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)riid,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[26] );
NdrProxyGetBuffer(This, &_StubMsg);
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)szName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( BOOL __RPC_FAR * )_StubMsg.Buffer)++ = bActive;
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = dwRequestedUpdateRate;
*(( OPCHANDLE __RPC_FAR * )_StubMsg.Buffer)++ = hClientGroup;
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pTimeBias,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pPercentDeadband,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[8] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = dwLCID;
NdrSimpleStructMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)riid,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[26] );
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
*phServerGroup = *(( OPCHANDLE __RPC_FAR * )_StubMsg.Buffer)++;
*pRevisedUpdateRate = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppUnk,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[38],
(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[12],
( void __RPC_FAR * )phServerGroup);
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[12],
( void __RPC_FAR * )pRevisedUpdateRate);
_StubMsg.MaxCount = (unsigned long) riid;
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDL_TypeFormatString.Format[38],
( void __RPC_FAR * )ppUnk);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IOPCServer_AddGroup_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
OPCHANDLE _M2;
DWORD _M3;
LPUNKNOWN _M4;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
BOOL bActive;
DWORD dwLCID;
DWORD dwRequestedUpdateRate;
OPCHANDLE hClientGroup;
float __RPC_FAR *pPercentDeadband;
DWORD __RPC_FAR *pRevisedUpdateRate;
LONG __RPC_FAR *pTimeBias;
OPCHANDLE __RPC_FAR *phServerGroup;
LPUNKNOWN __RPC_FAR *ppUnk;
REFIID riid;
LPCWSTR szName;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
szName = 0;
pTimeBias = 0;
pPercentDeadband = 0;
phServerGroup = 0;
pRevisedUpdateRate = 0;
riid = 0;
ppUnk = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&szName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
bActive = *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++;
dwRequestedUpdateRate = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
hClientGroup = *(( OPCHANDLE __RPC_FAR * )_StubMsg.Buffer)++;
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pTimeBias,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4],
(unsigned char)0 );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pPercentDeadband,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[8],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
dwLCID = *(( DWORD __RPC_FAR * )_StubMsg.Buffer)++;
NdrSimpleStructUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&riid,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[26],
(unsigned char)0 );
phServerGroup = &_M2;
pRevisedUpdateRate = &_M3;
ppUnk = &_M4;
_M4 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IOPCServer *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> AddGroup(
(IOPCServer *) ((CStdStubBuffer *)This)->pvServerObject,
szName,
bActive,
dwRequestedUpdateRate,
hClientGroup,
pTimeBias,
pPercentDeadband,
dwLCID,
phServerGroup,
pRevisedUpdateRate,
riid,
ppUnk);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 4U + 0U + 4U;
_StubMsg.MaxCount = (unsigned long) riid;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppUnk,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[38] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( OPCHANDLE __RPC_FAR * )_StubMsg.Buffer)++ = *phServerGroup;
*(( DWORD __RPC_FAR * )_StubMsg.Buffer)++ = *pRevisedUpdateRate;
_StubMsg.MaxCount = (unsigned long) riid;
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppUnk,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[38] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
_StubMsg.MaxCount = (unsigned long) riid;
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)ppUnk,
&__MIDL_TypeFormatString.Format[38] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IOPCServer_GetErrorString_Proxy(
IOPCServer __RPC_FAR * This,
/* [in] */ HRESULT dwError,
/* [in] */ LCID dwLocale,
/* [string][out] */ LPWSTR __RPC_FAR *ppString)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppString = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
4);
RpcTryFinally
{
_StubMsg.BufferLength = 4U + 4U;
NdrProxyGetBuffer(This, &_StubMsg);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = dwError;
*(( LCID __RPC_FAR * )_StubMsg.Buffer)++ = dwLocale;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[38] );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppString,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[48],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
_RetVal = *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++;
}
RpcFinally
{
NdrProxyFreeBuffer(This, &_StubMsg);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -