📄 mymagic_idl_p.c
字号:
/* this ALWAYS GENERATED file contains the proxy stub code */
/* File created by MIDL compiler version 5.01.0164 */
/* at Thu Apr 21 20:11:07 2005
*/
/* Compiler settings for d:/MATLAB701/work/mymagic/src\mymagic_idl.idl:
Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
error checks: allocation ref bounds_check enum stub_data
*/
//@@MIDL_FILE_HEADING( )
/* verify that the <rpcproxy.h> version is high enough to compile this file*/
#ifndef __REDQ_RPCPROXY_H_VERSION__
#define __REQUIRED_RPCPROXY_H_VERSION__ 440
#endif
#include "rpcproxy.h"
#ifndef __RPCPROXY_H_VERSION__
#error this stub requires an updated version of <rpcproxy.h>
#endif // __RPCPROXY_H_VERSION__
#include "mymagic_idl.h"
#define TYPE_FORMAT_STRING_SIZE 1011
#define PROC_FORMAT_STRING_SIZE 25
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;
/* Object interface: IUnknown, ver. 0.0,
GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: IDispatch, ver. 0.0,
GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
/* Object interface: Imagic, ver. 0.0,
GUID={0x46A1E187,0xDA57,0x4020,{0x8E,0xDE,0x93,0xAC,0xCA,0x00,0xE5,0x40}} */
extern const MIDL_STUB_DESC Object_StubDesc;
#pragma code_seg(".orpc")
/* [helpstring][id][propget] */ HRESULT STDMETHODCALLTYPE Imagic_get_MWFlags_Proxy(
Imagic __RPC_FAR * This,
/* [retval][out] */ IMWFlags __RPC_FAR *__RPC_FAR *ppvFlags)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
if(ppvFlags)
{
MIDL_memset(
ppvFlags,
0,
sizeof( IMWFlags __RPC_FAR *__RPC_FAR * ));
}
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
7);
if(!ppvFlags)
{
RpcRaiseException(RPC_X_NULL_REF_POINTER);
}
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[0] );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppvFlags,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2],
(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[2],
( void __RPC_FAR * )ppvFlags);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB Imagic_get_MWFlags_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
IMWFlags __RPC_FAR *_M0;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
IMWFlags __RPC_FAR *__RPC_FAR *ppvFlags;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
( IMWFlags __RPC_FAR *__RPC_FAR * )ppvFlags = 0;
RpcTryFinally
{
ppvFlags = &_M0;
_M0 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((Imagic*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> get_MWFlags((Imagic *) ((CStdStubBuffer *)This)->pvServerObject,ppvFlags);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 0U + 4U;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppvFlags,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppvFlags,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)ppvFlags,
&__MIDL_TypeFormatString.Format[2] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring][id][propput] */ HRESULT STDMETHODCALLTYPE Imagic_put_MWFlags_Proxy(
Imagic __RPC_FAR * This,
/* [in] */ IMWFlags __RPC_FAR *pvFlags)
{
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,
8);
RpcTryFinally
{
_StubMsg.BufferLength = 0U;
NdrInterfacePointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pvFlags,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[6] );
NdrProxyGetBuffer(This, &_StubMsg);
NdrInterfacePointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pvFlags,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[6] );
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
_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 Imagic_put_MWFlags_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
IMWFlags __RPC_FAR *pvFlags;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pvFlags = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
NdrInterfacePointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pvFlags,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[6],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((Imagic*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> put_MWFlags((Imagic *) ((CStdStubBuffer *)This)->pvServerObject,pvFlags);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrInterfacePointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)pvFlags,
&__MIDL_TypeFormatString.Format[6] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring][id] */ HRESULT STDMETHODCALLTYPE Imagic_magicdemo_Proxy(
Imagic __RPC_FAR * This,
/* [in] */ long nargout,
/* [out][in] */ VARIANT __RPC_FAR *y,
/* [in] */ VARIANT x)
{
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,
9);
if(!y)
{
RpcRaiseException(RPC_X_NULL_REF_POINTER);
}
RpcTryFinally
{
_StubMsg.BufferLength = 4U + 4U + 15U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)y,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)&x,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000] );
NdrProxyGetBuffer(This, &_StubMsg);
*(( long __RPC_FAR * )_StubMsg.Buffer)++ = nargout;
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)y,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)&x,
(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[12] );
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&y,
(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 * )y);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB Imagic_magicdemo_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
void __RPC_FAR *_p_x;
long nargout;
VARIANT x;
VARIANT __RPC_FAR *y;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
( VARIANT __RPC_FAR * )y = 0;
_p_x = &x;
MIDL_memset(
_p_x,
0,
sizeof( VARIANT ));
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 *)&y,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986],
(unsigned char)0 );
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&_p_x,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[1000],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((Imagic*) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> magicdemo(
(Imagic *) ((CStdStubBuffer *)This)->pvServerObject,
nargout,
y,
x);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 8U + 11U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)y,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)y,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[986] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -