?? comchat_p.c
字號(hào):
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 0U + 4U;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppcs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[56] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppcs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[56] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)ppcs,
&__MIDL_TypeFormatString.Format[56] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IChatSessionManager_DeleteSession_Proxy(
IChatSessionManager __RPC_FAR * This,
/* [string][in] */ const OLECHAR __RPC_FAR *pwszSessionName)
{
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 = 12U;
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pwszSessionName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10] );
NdrProxyGetBuffer(This, &_StubMsg);
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pwszSessionName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10] );
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 IChatSessionManager_DeleteSession_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
const OLECHAR __RPC_FAR *pwszSessionName;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pwszSessionName = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[6] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pwszSessionName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IChatSessionManager *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> DeleteSession((IChatSessionManager *) ((CStdStubBuffer *)This)->pvServerObject,pwszSessionName);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U;
_StubMsg.BufferLength += 16;
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,
0x301004c, /* MIDL Version 3.1.76 */
0,
0,
0, /* Reserved1 */
0, /* Reserved2 */
0, /* Reserved3 */
0, /* Reserved4 */
0 /* Reserved5 */
};
const CINTERFACE_PROXY_VTABLE(6) _IChatSessionManagerProxyVtbl =
{
&IID_IChatSessionManager,
IUnknown_QueryInterface_Proxy,
IUnknown_AddRef_Proxy,
IUnknown_Release_Proxy ,
IChatSessionManager_GetSessionNames_Proxy ,
IChatSessionManager_FindSession_Proxy ,
IChatSessionManager_DeleteSession_Proxy
};
static const PRPC_STUB_FUNCTION IChatSessionManager_table[] =
{
IChatSessionManager_GetSessionNames_Stub,
IChatSessionManager_FindSession_Stub,
IChatSessionManager_DeleteSession_Stub
};
const CInterfaceStubVtbl _IChatSessionManagerStubVtbl =
{
&IID_IChatSessionManager,
0,
6,
&IChatSessionManager_table[-3],
CStdStubBuffer_METHODS
};
/* Standard interface: __MIDL_itf_COMChat_0061, ver. 0.0,
GUID={0x00000000,0x0000,0x0000,{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} */
#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,
{
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 */
/* 6 */
0x4d, /* FC_IN_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 8 */ NdrFcShort( 0x8 ), /* Type Offset=8 */
/* 10 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 12 */
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 14 */ NdrFcShort( 0xc ), /* Type Offset=12 */
/* 16 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 18 */
0x4d, /* FC_IN_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 20 */ NdrFcShort( 0x22 ), /* Type Offset=34 */
/* 22 */
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 24 */ NdrFcShort( 0x34 ), /* Type Offset=52 */
/* 26 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 28 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 30 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 32 */
0x4d, /* FC_IN_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 34 */ NdrFcShort( 0x8 ), /* Type Offset=8 */
/* 36 */
0x4d, /* FC_IN_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 38 */ NdrFcShort( 0x8 ), /* Type Offset=8 */
/* 40 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 42 */
0x4d, /* FC_IN_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 44 */ NdrFcShort( 0x8 ), /* Type Offset=8 */
/* 46 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 48 */ 0x4e, /* FC_IN_PARAM_BASETYPE */
0x8, /* FC_LONG */
/* 50 */
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
#endif
/* 52 */ NdrFcShort( 0x38 ), /* Type Offset=56 */
/* 54 */ 0x53, /* FC_RETURN_PARAM_BASETYPE */
0x8, /* FC_LONG */
0x0
}
};
static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
{
0,
{
0x11, 0x14, /* FC_RP [alloced_on_stack] */
/* 2 */ NdrFcShort( 0x2 ), /* Offset= 2 (4) */
/* 4 */
0x13, 0x8, /* FC_OP [simple_pointer] */
/* 6 */
0x25, /* FC_C_WSTRING */
0x5c, /* FC_PAD */
/* 8 */
0x11, 0x8, /* FC_RP [simple_pointer] */
/* 10 */
0x25, /* FC_C_WSTRING */
0x5c, /* FC_PAD */
/* 12 */
0x11, 0x14, /* FC_RP [alloced_on_stack] */
/* 14 */ NdrFcShort( 0x2 ), /* Offset= 2 (16) */
/* 16 */
0x2f, /* FC_IP */
0x5a, /* FC_CONSTANT_IID */
/* 18 */ NdrFcLong( 0x101 ), /* 257 */
/* 22 */ NdrFcShort( 0x0 ), /* 0 */
/* 24 */ NdrFcShort( 0x0 ), /* 0 */
/* 26 */ 0xc0, /* 192 */
0x0, /* 0 */
/* 28 */ 0x0, /* 0 */
0x0, /* 0 */
/* 30 */ 0x0, /* 0 */
0x0, /* 0 */
/* 32 */ 0x0, /* 0 */
0x46, /* 70 */
/* 34 */
0x2f, /* FC_IP */
0x5a, /* FC_CONSTANT_IID */
/* 36 */ NdrFcLong( 0x5223a051 ), /* 1378066513 */
/* 40 */ NdrFcShort( 0x2441 ), /* 9281 */
/* 42 */ NdrFcShort( 0x11d1 ), /* 4561 */
/* 44 */ 0xaf, /* 175 */
0x4f, /* 79 */
/* 46 */ 0x0, /* 0 */
0x60, /* 96 */
/* 48 */ 0x97, /* 151 */
0x6a, /* 106 */
/* 50 */ 0xa8, /* 168 */
0x86, /* 134 */
/* 52 */
0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
/* 54 */ 0x8, /* FC_LONG */
0x5c, /* FC_PAD */
/* 56 */
0x11, 0x14, /* FC_RP [alloced_on_stack] */
/* 58 */ NdrFcShort( 0x2 ), /* Offset= 2 (60) */
/* 60 */
0x2f, /* FC_IP */
0x5a, /* FC_CONSTANT_IID */
/* 62 */ NdrFcLong( 0x5223a050 ), /* 1378066512 */
/* 66 */ NdrFcShort( 0x2441 ), /* 9281 */
/* 68 */ NdrFcShort( 0x11d1 ), /* 4561 */
/* 70 */ 0xaf, /* 175 */
0x4f, /* 79 */
/* 72 */ 0x0, /* 0 */
0x60, /* 96 */
/* 74 */ 0x97, /* 151 */
0x6a, /* 106 */
/* 76 */ 0xa8, /* 168 */
0x86, /* 134 */
0x0
}
};
const CInterfaceProxyVtbl * _COMChat_ProxyVtblList[] =
{
( CInterfaceProxyVtbl *) &_IChatSessionProxyVtbl,
( CInterfaceProxyVtbl *) &_IChatSessionEventsProxyVtbl,
( CInterfaceProxyVtbl *) &_IChatSessionManagerProxyVtbl,
0
};
const CInterfaceStubVtbl * _COMChat_StubVtblList[] =
{
( CInterfaceStubVtbl *) &_IChatSessionStubVtbl,
( CInterfaceStubVtbl *) &_IChatSessionEventsStubVtbl,
( CInterfaceStubVtbl *) &_IChatSessionManagerStubVtbl,
0
};
PCInterfaceName const _COMChat_InterfaceNamesList[] =
{
"IChatSession",
"IChatSessionEvents",
"IChatSessionManager",
0
};
#define _COMChat_CHECK_IID(n) IID_GENERIC_CHECK_IID( _COMChat, pIID, n)
int __stdcall _COMChat_IID_Lookup( const IID * pIID, int * pIndex )
{
IID_BS_LOOKUP_SETUP
IID_BS_LOOKUP_INITIAL_TEST( _COMChat, 3, 2 )
IID_BS_LOOKUP_NEXT_TEST( _COMChat, 1 )
IID_BS_LOOKUP_RETURN_RESULT( _COMChat, 3, *pIndex )
}
const ExtendedProxyFileInfo COMChat_ProxyFileInfo =
{
(PCInterfaceProxyVtblList *) & _COMChat_ProxyVtblList,
(PCInterfaceStubVtblList *) & _COMChat_StubVtblList,
(const PCInterfaceName * ) & _COMChat_InterfaceNamesList,
0, // no delegation
& _COMChat_IID_Lookup,
3,
1
};
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -