home *** CD-ROM | disk | FTP | other *** search
- /* this ALWAYS GENERATED file contains the proxy stub code */
-
-
- /* File created by MIDL compiler version 3.00.41 */
- /* at Thu Sep 26 23:38:20 1996
- */
- /* Compiler settings for lst44.idl:
- Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
- error checks: none
- */
- //@@MIDL_FILE_HEADING( )
-
- #include "rpcproxy.h"
- #include "lst44.h"
-
- #define TYPE_FORMAT_STRING_SIZE 39
- #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: IDispatch, ver. 0.0,
- GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
-
-
- /* Object interface: ILst44, ver. 0.0,
- GUID={0xC566CC21,0x182E,0x11D0,{0xA6,0xAD,0x00,0xAA,0x00,0x60,0x25,0x53}} */
-
-
- extern const MIDL_STUB_DESC Object_StubDesc;
-
-
- #pragma code_seg(".orpc")
-
- HRESULT STDMETHODCALLTYPE ILst44_GetMachineName_Proxy(
- ILst44 __RPC_FAR * This,
- /* [retval][out] */ BSTR __RPC_FAR *retval)
- {
-
- HRESULT _RetVal;
-
- RPC_MESSAGE _RpcMessage;
-
- MIDL_STUB_MESSAGE _StubMsg;
-
- MIDL_memset(
- retval,
- 0,
- sizeof( BSTR ));
- RpcTryExcept
- {
- RpcTryFinally
- {
- NdrProxyInitialize(
- ( void __RPC_FAR * )This,
- ( PRPC_MESSAGE )&_RpcMessage,
- ( PMIDL_STUB_MESSAGE )&_StubMsg,
- ( PMIDL_STUB_DESC )&Object_StubDesc,
- 7);
-
-
-
-
- _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] );
-
- NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
- (unsigned char __RPC_FAR * __RPC_FAR *)&retval,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[28],
- (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[0],
- ( void __RPC_FAR * )retval);
- _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
- }
- RpcEndExcept
- return _RetVal;
- }
-
- void __RPC_STUB ILst44_GetMachineName_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase)
- {
- BSTR _M0;
- HRESULT _RetVal;
- MIDL_STUB_MESSAGE _StubMsg;
- BSTR __RPC_FAR *retval;
-
- NdrStubInitialize(
- _pRpcMessage,
- &_StubMsg,
- &Object_StubDesc,
- _pRpcChannelBuffer);
- retval = 0;
- RpcTryFinally
- {
- retval = &_M0;
- MIDL_memset(
- retval,
- 0,
- sizeof( BSTR ));
-
- *_pdwStubPhase = STUB_CALL_SERVER;
- _RetVal = (((ILst44 *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetMachineName((ILst44 *) ((CStdStubBuffer *)This)->pvServerObject,retval);
-
- *_pdwStubPhase = STUB_MARSHAL;
-
- _StubMsg.BufferLength = 4U + 11U;
- NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
- (unsigned char __RPC_FAR *)retval,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[28] );
-
- _StubMsg.BufferLength += 16;
-
- NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
- NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
- (unsigned char __RPC_FAR *)retval,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[28] );
-
- _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
- *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
-
- }
- RpcFinally
- {
- NdrPointerFree( &_StubMsg,
- (unsigned char __RPC_FAR *)retval,
- &__MIDL_TypeFormatString.Format[0] );
-
- }
- RpcEndFinally
- _pRpcMessage->BufferLength =
- (unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
-
- }
-
- extern const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[1];
-
- static const MIDL_STUB_DESC Object_StubDesc =
- {
- 0,
- NdrOleAllocate,
- NdrOleFree,
- 0,
- 0,
- 0,
- 0,
- 0,
- __MIDL_TypeFormatString.Format,
- 0, /* -error bounds_check flag */
- 0x20000, /* Ndr library version */
- 0,
- 0x3000029, /* MIDL Version 3.0.41 */
- 0,
- UserMarshalRoutines,
- 0, /* Reserved1 */
- 0, /* Reserved2 */
- 0, /* Reserved3 */
- 0, /* Reserved4 */
- 0 /* Reserved5 */
- };
-
- CINTERFACE_PROXY_VTABLE(8) _ILst44ProxyVtbl =
- {
- &IID_ILst44,
- IUnknown_QueryInterface_Proxy,
- IUnknown_AddRef_Proxy,
- IUnknown_Release_Proxy ,
- 0 /* IDispatch_GetTypeInfoCount_Proxy */ ,
- 0 /* IDispatch_GetTypeInfo_Proxy */ ,
- 0 /* IDispatch_GetIDsOfNames_Proxy */ ,
- 0 /* IDispatch_Invoke_Proxy */ ,
- ILst44_GetMachineName_Proxy
- };
-
-
- static const PRPC_STUB_FUNCTION ILst44_table[] =
- {
- STUB_FORWARDING_FUNCTION,
- STUB_FORWARDING_FUNCTION,
- STUB_FORWARDING_FUNCTION,
- STUB_FORWARDING_FUNCTION,
- ILst44_GetMachineName_Stub
- };
-
- CInterfaceStubVtbl _ILst44StubVtbl =
- {
- &IID_ILst44,
- 0,
- 8,
- &ILst44_table[-3],
- CStdStubBuffer_DELEGATING_METHODS
- };
-
- #pragma data_seg(".rdata")
-
- static const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[1] =
- {
-
- {
- BSTR_UserSize
- ,BSTR_UserMarshal
- ,BSTR_UserUnmarshal
- ,BSTR_UserFree
- }
-
- };
-
-
- #if !defined(__RPC_WIN32__)
- #error Invalid build platform for this stub.
- #endif
-
- #if !(TARGET_IS_NT40_OR_LATER)
- #error You need a Windows NT 4.0 or later to run this stub
- #endif
-
-
- static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
- {
- 0,
- {
-
- 0x51, /* FC_OUT_PARAM */
- #ifndef _ALPHA_
- 0x1, /* x86, MIPS & PPC Stack size = 1 */
- #else
- 0x2, /* Alpha Stack size = 2 */
- #endif
- /* 2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
- /* 4 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
- 0x8, /* FC_LONG */
-
- 0x0
- }
- };
-
- static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
- {
- 0,
- {
- 0x11, 0x4, /* FC_RP [alloced_on_stack] */
- /* 2 */ NdrFcShort( 0x1a ), /* Offset= 26 (28) */
- /* 4 */
- 0x13, 0x0, /* FC_OP */
- /* 6 */ NdrFcShort( 0xc ), /* Offset= 12 (18) */
- /* 8 */
- 0x1b, /* FC_CARRAY */
- 0x1, /* 1 */
- /* 10 */ NdrFcShort( 0x2 ), /* 2 */
- /* 12 */ 0x9, /* 9 */
- 0x0, /* */
- /* 14 */ NdrFcShort( 0xfffffffc ), /* -4 */
- /* 16 */ 0x6, /* FC_SHORT */
- 0x5b, /* FC_END */
- /* 18 */
- 0x17, /* FC_CSTRUCT */
- 0x3, /* 3 */
- /* 20 */ NdrFcShort( 0x8 ), /* 8 */
- /* 22 */ NdrFcShort( 0xfffffff2 ), /* Offset= -14 (8) */
- /* 24 */ 0x8, /* FC_LONG */
- 0x8, /* FC_LONG */
- /* 26 */ 0x5c, /* FC_PAD */
- 0x5b, /* FC_END */
- /* 28 */ 0xb4, /* FC_USER_MARSHAL */
- 0x83, /* 131 */
- /* 30 */ NdrFcShort( 0x0 ), /* 0 */
- /* 32 */ NdrFcShort( 0x4 ), /* 4 */
- /* 34 */ NdrFcShort( 0x0 ), /* 0 */
- /* 36 */ NdrFcShort( 0xffffffe0 ), /* Offset= -32 (4) */
-
- 0x0
- }
- };
-
- const CInterfaceProxyVtbl * _lst44_ProxyVtblList[] =
- {
- ( CInterfaceProxyVtbl *) &_ILst44ProxyVtbl,
- 0
- };
-
- const CInterfaceStubVtbl * _lst44_StubVtblList[] =
- {
- ( CInterfaceStubVtbl *) &_ILst44StubVtbl,
- 0
- };
-
- PCInterfaceName const _lst44_InterfaceNamesList[] =
- {
- "ILst44",
- 0
- };
-
- const IID * _lst44_BaseIIDList[] =
- {
- &IID_IDispatch,
- 0
- };
-
-
- #define _lst44_CHECK_IID(n) IID_GENERIC_CHECK_IID( _lst44, pIID, n)
-
- int __stdcall _lst44_IID_Lookup( const IID * pIID, int * pIndex )
- {
-
- if(!_lst44_CHECK_IID(0))
- {
- *pIndex = 0;
- return 1;
- }
-
- return 0;
- }
-
- const ExtendedProxyFileInfo lst44_ProxyFileInfo =
- {
- (PCInterfaceProxyVtblList *) & _lst44_ProxyVtblList,
- (PCInterfaceStubVtblList *) & _lst44_StubVtblList,
- (const PCInterfaceName * ) & _lst44_InterfaceNamesList,
- (const IID ** ) & _lst44_BaseIIDList,
- & _lst44_IID_Lookup,
- 1,
- 1
- };
-