IKOALA_P.C
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:12k
源码类别:
Windows编程
开发平台:
Visual C++
- /* this ALWAYS GENERATED file contains the proxy stub code */
- /* File created by MIDL compiler version 3.03.0110 */
- /* at Mon Mar 30 03:48:23 1998
- */
- /* Compiler settings for ikoala.idl:
- Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, app_config, c_ext
- error checks: none
- */
- //@@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 "ikoala.h"
- #define TYPE_FORMAT_STRING_SIZE 1
- #define PROC_FORMAT_STRING_SIZE 7
- 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: IKoala, ver. 0.0,
- GUID={0x0002114b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
- extern const MIDL_STUB_DESC Object_StubDesc;
- #pragma code_seg(".orpc")
- HRESULT STDMETHODCALLTYPE IKoala_ClimbEucalyptusTree_Proxy(
- IKoala __RPC_FAR * This,
- /* [in] */ short iTree)
- {
- 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,
- 3);
- RpcTryFinally
- {
- _StubMsg.BufferLength = 2U;
- NdrProxyGetBuffer(This, &_StubMsg);
- *(( short __RPC_FAR * )_StubMsg.Buffer)++ = iTree;
- NdrProxySendReceive(This, &_StubMsg);
- if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
- NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
- _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 IKoala_ClimbEucalyptusTree_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase)
- {
- HRESULT _RetVal;
- MIDL_STUB_MESSAGE _StubMsg;
- short iTree;
- NdrStubInitialize(
- _pRpcMessage,
- &_StubMsg,
- &Object_StubDesc,
- _pRpcChannelBuffer);
- RpcTryFinally
- {
- if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
- NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
- iTree = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
- *_pdwStubPhase = STUB_CALL_SERVER;
- _RetVal = (((IKoala *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> ClimbEucalyptusTree((IKoala *) ((CStdStubBuffer *)This)->pvServerObject,iTree);
- *_pdwStubPhase = STUB_MARSHAL;
- _StubMsg.BufferLength = 4U;
- NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
- *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
- }
- RpcFinally
- {
- }
- RpcEndFinally
- _pRpcMessage->BufferLength =
- (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
- }
- HRESULT STDMETHODCALLTYPE IKoala_PouchOpensDown_Proxy(
- IKoala __RPC_FAR * This)
- {
- 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,
- 4);
- 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[4] );
- _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 IKoala_PouchOpensDown_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase)
- {
- HRESULT _RetVal;
- MIDL_STUB_MESSAGE _StubMsg;
- NdrStubInitialize(
- _pRpcMessage,
- &_StubMsg,
- &Object_StubDesc,
- _pRpcChannelBuffer);
- RpcTryFinally
- {
- *_pdwStubPhase = STUB_CALL_SERVER;
- _RetVal = (((IKoala *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> PouchOpensDown((IKoala *) ((CStdStubBuffer *)This)->pvServerObject);
- *_pdwStubPhase = STUB_MARSHAL;
- _StubMsg.BufferLength = 4U;
- NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
- *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
- }
- RpcFinally
- {
- }
- RpcEndFinally
- _pRpcMessage->BufferLength =
- (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
- }
- HRESULT STDMETHODCALLTYPE IKoala_SleepAfterEating_Proxy(
- IKoala __RPC_FAR * This,
- /* [in] */ short cMinutes)
- {
- 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 = 2U;
- NdrProxyGetBuffer(This, &_StubMsg);
- *(( short __RPC_FAR * )_StubMsg.Buffer)++ = cMinutes;
- NdrProxySendReceive(This, &_StubMsg);
- if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
- NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
- _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 IKoala_SleepAfterEating_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase)
- {
- HRESULT _RetVal;
- MIDL_STUB_MESSAGE _StubMsg;
- short cMinutes;
- NdrStubInitialize(
- _pRpcMessage,
- &_StubMsg,
- &Object_StubDesc,
- _pRpcChannelBuffer);
- RpcTryFinally
- {
- if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
- NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[0] );
- cMinutes = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
- *_pdwStubPhase = STUB_CALL_SERVER;
- _RetVal = (((IKoala *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> SleepAfterEating((IKoala *) ((CStdStubBuffer *)This)->pvServerObject,cMinutes);
- *_pdwStubPhase = STUB_MARSHAL;
- _StubMsg.BufferLength = 4U;
- NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
- *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
- }
- RpcFinally
- {
- }
- RpcEndFinally
- _pRpcMessage->BufferLength =
- (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
- }
- static const MIDL_STUB_DESC Object_StubDesc =
- {
- 0,
- NdrOleAllocate,
- NdrOleFree,
- 0,
- 0,
- 0,
- 0,
- 0,
- __MIDL_TypeFormatString.Format,
- 0, /* -error bounds_check flag */
- 0x10001, /* Ndr library version */
- 0,
- 0x303006e, /* MIDL Version 3.3.110 */
- 0,
- 0,
- 0, /* Reserved1 */
- 0, /* Reserved2 */
- 0, /* Reserved3 */
- 0, /* Reserved4 */
- 0 /* Reserved5 */
- };
- const CINTERFACE_PROXY_VTABLE(6) _IKoalaProxyVtbl =
- {
- &IID_IKoala,
- IUnknown_QueryInterface_Proxy,
- IUnknown_AddRef_Proxy,
- IUnknown_Release_Proxy ,
- IKoala_ClimbEucalyptusTree_Proxy ,
- IKoala_PouchOpensDown_Proxy ,
- IKoala_SleepAfterEating_Proxy
- };
- static const PRPC_STUB_FUNCTION IKoala_table[] =
- {
- IKoala_ClimbEucalyptusTree_Stub,
- IKoala_PouchOpensDown_Stub,
- IKoala_SleepAfterEating_Stub
- };
- const CInterfaceStubVtbl _IKoalaStubVtbl =
- {
- &IID_IKoala,
- 0,
- 6,
- &IKoala_table[-3],
- CStdStubBuffer_METHODS
- };
- #pragma data_seg(".rdata")
- #if !defined(__RPC_WIN32__)
- #error Invalid build platform for this stub.
- #endif
- static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
- {
- 0,
- {
- 0x4e, /* FC_IN_PARAM_BASETYPE */
- 0x6, /* FC_SHORT */
- /* 2 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
- 0x8, /* FC_LONG */
- /* 4 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
- 0x8, /* FC_LONG */
- 0x0
- }
- };
- static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
- {
- 0,
- {
- 0x0
- }
- };
- const CInterfaceProxyVtbl * _ikoala_ProxyVtblList[] =
- {
- ( CInterfaceProxyVtbl *) &_IKoalaProxyVtbl,
- 0
- };
- const CInterfaceStubVtbl * _ikoala_StubVtblList[] =
- {
- ( CInterfaceStubVtbl *) &_IKoalaStubVtbl,
- 0
- };
- PCInterfaceName const _ikoala_InterfaceNamesList[] =
- {
- "IKoala",
- 0
- };
- #define _ikoala_CHECK_IID(n) IID_GENERIC_CHECK_IID( _ikoala, pIID, n)
- int __stdcall _ikoala_IID_Lookup( const IID * pIID, int * pIndex )
- {
- if(!_ikoala_CHECK_IID(0))
- {
- *pIndex = 0;
- return 1;
- }
- return 0;
- }
- const ExtendedProxyFileInfo ikoala_ProxyFileInfo =
- {
- (PCInterfaceProxyVtblList *) & _ikoala_ProxyVtblList,
- (PCInterfaceStubVtblList *) & _ikoala_StubVtblList,
- (const PCInterfaceName * ) & _ikoala_InterfaceNamesList,
- 0, // no delegation
- & _ikoala_IID_Lookup,
- 1,
- 1
- };