/* 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] );
NdrConformantSt
- 1
- 2
- 3
- 4
- 5
- 6
前往页