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 19 15:36:37 1996
- */
- /* Compiler settings for lst33.idl:
- Os (OptLev=s), W1, Zp8, env=Win32, ms_ext, c_ext
- error checks: none
- */
- //@@MIDL_FILE_HEADING( )
-
- #include "rpcproxy.h"
- #include "lst33.h"
-
- #define TYPE_FORMAT_STRING_SIZE 13
- #define PROC_FORMAT_STRING_SIZE 11
-
- 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: ILst33, ver. 0.0,
- GUID={0xE1DC1531,0x1250,0x11D0,{0xA6,0xAB,0x00,0xAA,0x00,0x60,0x25,0x53}} */
-
-
- extern const MIDL_STUB_DESC Object_StubDesc;
-
-
- #pragma code_seg(".orpc")
-
- HRESULT STDMETHODCALLTYPE ILst33_Lower_Proxy(
- ILst33 __RPC_FAR * This,
- /* [string][in] */ LPSTR inputString,
- /* [string][out] */ LPSTR __RPC_FAR *pOutputString)
- {
-
- HRESULT _RetVal;
-
- RPC_MESSAGE _RpcMessage;
-
- MIDL_STUB_MESSAGE _StubMsg;
-
- *pOutputString = 0;
- RpcTryExcept
- {
- RpcTryFinally
- {
- NdrProxyInitialize(
- ( void __RPC_FAR * )This,
- ( PRPC_MESSAGE )&_RpcMessage,
- ( PMIDL_STUB_MESSAGE )&_StubMsg,
- ( PMIDL_STUB_DESC )&Object_StubDesc,
- 3);
-
-
-
-
- _StubMsg.BufferLength = 12U;
- NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
- (unsigned char __RPC_FAR *)inputString,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2] );
-
- NdrProxyGetBuffer(This, &_StubMsg);
- NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
- (unsigned char __RPC_FAR *)inputString,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2] );
-
- 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 *)&pOutputString,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4],
- (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[4],
- ( void __RPC_FAR * )pOutputString);
- _RetVal = NdrProxyErrorHandler(RpcExceptionCode());
- }
- RpcEndExcept
- return _RetVal;
- }
-
- void __RPC_STUB ILst33_Lower_Stub(
- IRpcStubBuffer *This,
- IRpcChannelBuffer *_pRpcChannelBuffer,
- PRPC_MESSAGE _pRpcMessage,
- DWORD *_pdwStubPhase)
- {
- LPSTR _M4;
- HRESULT _RetVal;
- MIDL_STUB_MESSAGE _StubMsg;
- LPSTR inputString;
- LPSTR __RPC_FAR *pOutputString;
-
- NdrStubInitialize(
- _pRpcMessage,
- &_StubMsg,
- &Object_StubDesc,
- _pRpcChannelBuffer);
- inputString = 0;
- pOutputString = 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 *)&inputString,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[2],
- (unsigned char)0 );
-
- pOutputString = &_M4;
- _M4 = 0;
-
- *_pdwStubPhase = STUB_CALL_SERVER;
- _RetVal = (((ILst33 *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Lower(
- (ILst33 *) ((CStdStubBuffer *)This)->pvServerObject,
- inputString,
- pOutputString);
-
- *_pdwStubPhase = STUB_MARSHAL;
-
- _StubMsg.BufferLength = 16U + 11U;
- NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
- (unsigned char __RPC_FAR *)pOutputString,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
-
- _StubMsg.BufferLength += 16;
-
- NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
- NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
- (unsigned char __RPC_FAR *)pOutputString,
- (PFORMAT_STRING) &__MIDL_TypeFormatString.Format[4] );
-
- _StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
- *(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
-
- }
- RpcFinally
- {
- NdrPointerFree( &_StubMsg,
- (unsigned char __RPC_FAR *)pOutputString,
- &__MIDL_TypeFormatString.Format[4] );
-
- }
- 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,
- 0x3000029, /* MIDL Version 3.0.41 */
- 0,
- 0,
- 0, /* Reserved1 */
- 0, /* Reserved2 */
- 0, /* Reserved3 */
- 0, /* Reserved4 */
- 0 /* Reserved5 */
- };
-
- const CINTERFACE_PROXY_VTABLE(4) _ILst33ProxyVtbl =
- {
- &IID_ILst33,
- IUnknown_QueryInterface_Proxy,
- IUnknown_AddRef_Proxy,
- IUnknown_Release_Proxy ,
- ILst33_Lower_Proxy
- };
-
-
- static const PRPC_STUB_FUNCTION ILst33_table[] =
- {
- ILst33_Lower_Stub
- };
-
- const CInterfaceStubVtbl _ILst33StubVtbl =
- {
- &IID_ILst33,
- 0,
- 4,
- &ILst33_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,
- {
-
- 0x4d, /* FC_IN_PARAM */
- #ifndef _ALPHA_
- 0x1, /* x86, MIPS & PPC Stack size = 1 */
- #else
- 0x2, /* Alpha Stack size = 2 */
- #endif
- /* 2 */ NdrFcShort( 0x0 ), /* Type Offset=0 */
- /* 4 */
- 0x51, /* FC_OUT_PARAM */
- #ifndef _ALPHA_
- 0x1, /* x86, MIPS & PPC Stack size = 1 */
- #else
- 0x2, /* Alpha Stack size = 2 */
- #endif
- /* 6 */ NdrFcShort( 0x4 ), /* Type Offset=4 */
- /* 8 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
- 0x8, /* FC_LONG */
-
- 0x0
- }
- };
-
- static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
- {
- 0,
- {
- 0x11, 0x8, /* FC_RP [simple_pointer] */
- /* 2 */
- 0x22, /* FC_C_CSTRING */
- 0x5c, /* FC_PAD */
- /* 4 */
- 0x11, 0x14, /* FC_RP [alloced_on_stack] */
- /* 6 */ NdrFcShort( 0x2 ), /* Offset= 2 (8) */
- /* 8 */
- 0x13, 0x8, /* FC_OP [simple_pointer] */
- /* 10 */
- 0x22, /* FC_C_CSTRING */
- 0x5c, /* FC_PAD */
-
- 0x0
- }
- };
-
- const CInterfaceProxyVtbl * _lst33_ProxyVtblList[] =
- {
- ( CInterfaceProxyVtbl *) &_ILst33ProxyVtbl,
- 0
- };
-
- const CInterfaceStubVtbl * _lst33_StubVtblList[] =
- {
- ( CInterfaceStubVtbl *) &_ILst33StubVtbl,
- 0
- };
-
- PCInterfaceName const _lst33_InterfaceNamesList[] =
- {
- "ILst33",
- 0
- };
-
-
- #define _lst33_CHECK_IID(n) IID_GENERIC_CHECK_IID( _lst33, pIID, n)
-
- int __stdcall _lst33_IID_Lookup( const IID * pIID, int * pIndex )
- {
-
- if(!_lst33_CHECK_IID(0))
- {
- *pIndex = 0;
- return 1;
- }
-
- return 0;
- }
-
- const ExtendedProxyFileInfo lst33_ProxyFileInfo =
- {
- (PCInterfaceProxyVtblList *) & _lst33_ProxyVtblList,
- (PCInterfaceStubVtblList *) & _lst33_StubVtblList,
- (const PCInterfaceName * ) & _lst33_InterfaceNamesList,
- 0, // no delegation
- & _lst33_IID_Lookup,
- 1,
- 1
- };
-