📄 idescr~1.c
字号:
/* this ALWAYS GENERATED file contains the proxy stub code */
/* File created by MIDL compiler version 2.00.0102 */
/* at Tue May 21 15:05:31 1996
*/
//@@MIDL_FILE_HEADING( )
#include "rpcproxy.h"
#include "idescrip.h"
extern const MIDL_FORMAT_STRING __MIDLFormatString;
extern const MIDL_FORMAT_STRING __MIDLProcFormatString;
extern const MIDL_STUB_DESC Object_StubDesc;
#pragma code_seg(".orpc")
HRESULT __stdcall IDescription_GetText_Proxy(
IDescription __RPC_FAR * This,
/* [size_is][out][in] */ LPOLESTR pszText,
/* [in] */ ULONG cch)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
RpcTryExcept
{
RpcTryFinally
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
3);
_StubMsg.BufferLength = 12U + 10U;
_StubMsg.MaxCount = cch;
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pszText,
(PFORMAT_STRING) &__MIDLFormatString.Format[4] );
NdrProxyGetBuffer(This, &_StubMsg);
_StubMsg.MaxCount = cch;
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pszText,
(PFORMAT_STRING) &__MIDLFormatString.Format[4] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( ULONG __RPC_FAR * )_StubMsg.Buffer)++ = cch;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[0] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pszText,
(PFORMAT_STRING) &__MIDLFormatString.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)
{
_StubMsg.MaxCount = cch;
NdrClearOutParameters(
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PFORMAT_STRING )&__MIDLFormatString.Format[0],
( void __RPC_FAR * )pszText);
_RetVal = NdrProxyErrorHandler(GetExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IDescription_GetText_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
ULONG cch;
LPOLESTR pszText;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pszText = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[0] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pszText,
(PFORMAT_STRING) &__MIDLFormatString.Format[4],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
cch = *(( ULONG __RPC_FAR * )_StubMsg.Buffer)++;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IDescription *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetText(
(IDescription *) ((CStdStubBuffer *)This)->pvServerObject,
pszText,
cch);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 12U + 10U;
_StubMsg.MaxCount = cch;
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pszText,
(PFORMAT_STRING) &__MIDLFormatString.Format[4] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
_StubMsg.MaxCount = cch;
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pszText,
(PFORMAT_STRING) &__MIDLFormatString.Format[4] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
_StubMsg.MaxCount = cch;
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)pszText,
&__MIDLFormatString.Format[0] );
}
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,
__MIDLFormatString.Format,
0, /* -error bounds_check flag */
0x10001, /* Ndr library version */
0,
0x2000066, /* MIDL Version 2.0.102 */
0
};
const CInterfaceProxyVtbl _IDescriptionProxyVtbl =
{
&IID_IDescription,
IUnknown_QueryInterface_Proxy,
IUnknown_AddRef_Proxy,
IUnknown_Release_Proxy ,
IDescription_GetText_Proxy
};
static const PRPC_STUB_FUNCTION IDescription_table[] =
{
IDescription_GetText_Stub
};
const CInterfaceStubVtbl _IDescriptionStubVtbl =
{
&IID_IDescription,
0,
4,
&IDescription_table[-3],
CStdStubBuffer_METHODS
};
#pragma data_seg(".rdata")
#if !defined(__RPC_WIN32__)
#error Invalid build platform for this stub.
#endif
static const MIDL_FORMAT_STRING __MIDLProcFormatString =
{
0,
{
0x50, /* FC_IN_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 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 6 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
0x0
}
};
static const MIDL_FORMAT_STRING __MIDLFormatString =
{
0,
{
0x11, 0x0, /* FC_RP */
/* 2 */ NdrFcShort( 0x2 ), /* Offset= 2 (4) */
/* 4 */
0x25, /* FC_C_WSTRING */
0x44, /* FC_STRING_SIZED */
/* 6 */ 0x28, /* 40 */
0x0, /* */
#ifndef _ALPHA_
/* 8 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
#else
NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
#endif
0x0
}
};
const CInterfaceProxyVtbl * _idescrip_ProxyVtblList[] =
{
( CInterfaceProxyVtbl *) &_IDescriptionProxyVtbl,
0
};
const CInterfaceStubVtbl * _idescrip_StubVtblList[] =
{
( CInterfaceStubVtbl *) &_IDescriptionStubVtbl,
0
};
PCInterfaceName const _idescrip_InterfaceNamesList[] =
{
"IDescription",
0
};
#define _idescrip_CHECK_IID(n) IID_GENERIC_CHECK_IID( _idescrip, pIID, n)
int __stdcall _idescrip_IID_Lookup( const IID * pIID, int * pIndex )
{
if(!_idescrip_CHECK_IID(0))
{
*pIndex = 0;
return 1;
}
return 0;
}
const ExtendedProxyFileInfo idescrip_ProxyFileInfo =
{
(PCInterfaceProxyVtblList *) & _idescrip_ProxyVtblList,
(PCInterfaceStubVtblList *) & _idescrip_StubVtblList,
(const PCInterfaceName * ) & _idescrip_InterfaceNamesList,
0, // no delegation
& _idescrip_IID_Lookup,
1,
1
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -