?? comchat_p.c
字號:
_RetVal = (((IChatSessionEvents *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> OnUserLeft((IChatSessionEvents *) ((CStdStubBuffer *)This)->pvServerObject,pwszUser);
*_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);
}
HRESULT STDMETHODCALLTYPE IChatSessionEvents_OnNewStatement_Proxy(
IChatSessionEvents __RPC_FAR * This,
/* [string][in] */ const OLECHAR __RPC_FAR *pwszUser,
/* [string][in] */ const OLECHAR __RPC_FAR *pwszStmnt)
{
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 + 14U;
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pwszUser,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10] );
NdrConformantStringBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pwszStmnt,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10] );
NdrProxyGetBuffer(This, &_StubMsg);
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pwszUser,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10] );
NdrConformantStringMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pwszStmnt,
(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[32] );
_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 IChatSessionEvents_OnNewStatement_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
const OLECHAR __RPC_FAR *pwszStmnt;
const OLECHAR __RPC_FAR *pwszUser;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pwszUser = 0;
pwszStmnt = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[32] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pwszUser,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10],
(unsigned char)0 );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pwszStmnt,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10],
(unsigned char)0 );
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IChatSessionEvents *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> OnNewStatement(
(IChatSessionEvents *) ((CStdStubBuffer *)This)->pvServerObject,
pwszUser,
pwszStmnt);
*_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);
}
const CINTERFACE_PROXY_VTABLE(6) _IChatSessionEventsProxyVtbl =
{
&IID_IChatSessionEvents,
IUnknown_QueryInterface_Proxy,
IUnknown_AddRef_Proxy,
IUnknown_Release_Proxy ,
IChatSessionEvents_OnNewUser_Proxy ,
IChatSessionEvents_OnUserLeft_Proxy ,
IChatSessionEvents_OnNewStatement_Proxy
};
static const PRPC_STUB_FUNCTION IChatSessionEvents_table[] =
{
IChatSessionEvents_OnNewUser_Stub,
IChatSessionEvents_OnUserLeft_Stub,
IChatSessionEvents_OnNewStatement_Stub
};
const CInterfaceStubVtbl _IChatSessionEventsStubVtbl =
{
&IID_IChatSessionEvents,
0,
6,
&IChatSessionEvents_table[-3],
CStdStubBuffer_METHODS
};
/* Object interface: IChatSessionManager, ver. 0.0,
GUID={0x5223A052,0x2441,0x11d1,{0xAF,0x4F,0x00,0x60,0x97,0x6A,0xA8,0x86}} */
extern const MIDL_STUB_DESC Object_StubDesc;
#pragma code_seg(".orpc")
HRESULT STDMETHODCALLTYPE IChatSessionManager_GetSessionNames_Proxy(
IChatSessionManager __RPC_FAR * This,
/* [out] */ IEnumString __RPC_FAR *__RPC_FAR *ppes)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppes = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
3);
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[12] );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppes,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[12],
(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[12],
( void __RPC_FAR * )ppes);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IChatSessionManager_GetSessionNames_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
IEnumString __RPC_FAR *_M15;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
IEnumString __RPC_FAR *__RPC_FAR *ppes;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
ppes = 0;
RpcTryFinally
{
ppes = &_M15;
_M15 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IChatSessionManager *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> GetSessionNames((IChatSessionManager *) ((CStdStubBuffer *)This)->pvServerObject,ppes);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 0U + 4U;
NdrPointerBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)ppes,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[12] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrPointerMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)ppes,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[12] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)ppes,
&__MIDL_TypeFormatString.Format[12] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
HRESULT STDMETHODCALLTYPE IChatSessionManager_FindSession_Proxy(
IChatSessionManager __RPC_FAR * This,
/* [string][in] */ const OLECHAR __RPC_FAR *pwszSessionName,
/* [in] */ BOOL bDontCreate,
/* [in] */ BOOL bAllowAnonymousAccess,
/* [out] */ IChatSession __RPC_FAR *__RPC_FAR *ppcs)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
*ppcs = 0;
RpcTryExcept
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
4);
RpcTryFinally
{
_StubMsg.BufferLength = 12U + 10U + 7U;
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] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( BOOL __RPC_FAR * )_StubMsg.Buffer)++ = bDontCreate;
*(( BOOL __RPC_FAR * )_StubMsg.Buffer)++ = bAllowAnonymousAccess;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[42] );
NdrPointerUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&ppcs,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[56],
(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[56],
( void __RPC_FAR * )ppcs);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IChatSessionManager_FindSession_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
IChatSession __RPC_FAR *_M18;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
BOOL bAllowAnonymousAccess;
BOOL bDontCreate;
IChatSession __RPC_FAR *__RPC_FAR *ppcs;
const OLECHAR __RPC_FAR *pwszSessionName;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
pwszSessionName = 0;
ppcs = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDL_ProcFormatString.Format[42] );
NdrConformantStringUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pwszSessionName,
(PFORMAT_STRING) &__MIDL_TypeFormatString.Format[10],
(unsigned char)0 );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
bDontCreate = *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++;
bAllowAnonymousAccess = *(( BOOL __RPC_FAR * )_StubMsg.Buffer)++;
ppcs = &_M18;
_M18 = 0;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IChatSessionManager *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> FindSession(
(IChatSessionManager *) ((CStdStubBuffer *)This)->pvServerObject,
pwszSessionName,
bDontCreate,
bAllowAnonymousAccess,
ppcs);
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -