📄 shortcutsvr_p.c
字号:
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring] */ HRESULT STDMETHODCALLTYPE IShortCut_Save_Proxy(
IShortCut __RPC_FAR * This,
/* [in] */ short fRemember)
{
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,
17);
_StubMsg.BufferLength = 2U;
NdrProxyGetBuffer(This, &_StubMsg);
*(( short __RPC_FAR * )_StubMsg.Buffer)++ = fRemember;
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[58] );
_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 IShortCut_Save_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
short fRemember;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[58] );
fRemember = *(( short __RPC_FAR * )_StubMsg.Buffer)++;
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IShortCut *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Save((IShortCut *) ((CStdStubBuffer *)This)->pvServerObject,fRemember);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
/* [helpstring] */ HRESULT STDMETHODCALLTYPE IShortCut_Resolve_Proxy(
IShortCut __RPC_FAR * This,
/* [in] */ long hWnd,
/* [in] */ BSTR bsShortcut,
/* [retval][out] */ BSTR __RPC_FAR *pbsRet)
{
HRESULT _RetVal;
RPC_MESSAGE _RpcMessage;
MIDL_STUB_MESSAGE _StubMsg;
MIDL_memset(
pbsRet,
0,
sizeof( BSTR ));
RpcTryExcept
{
RpcTryFinally
{
NdrProxyInitialize(
( void __RPC_FAR * )This,
( PRPC_MESSAGE )&_RpcMessage,
( PMIDL_STUB_MESSAGE )&_StubMsg,
( PMIDL_STUB_DESC )&Object_StubDesc,
18);
_StubMsg.BufferLength = 4U + 4U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)&bsShortcut,
(PFORMAT_STRING) &__MIDLTypeFormatString.Format[840] );
NdrProxyGetBuffer(This, &_StubMsg);
*(( long __RPC_FAR * )_StubMsg.Buffer)++ = hWnd;
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)&bsShortcut,
(PFORMAT_STRING) &__MIDLTypeFormatString.Format[840] );
NdrProxySendReceive(This, &_StubMsg);
if ( (_RpcMessage.DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[62] );
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&pbsRet,
(PFORMAT_STRING) &__MIDLTypeFormatString.Format[854],
(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 )&__MIDLTypeFormatString.Format[850],
( void __RPC_FAR * )pbsRet);
_RetVal = NdrProxyErrorHandler(RpcExceptionCode());
}
RpcEndExcept
return _RetVal;
}
void __RPC_STUB IShortCut_Resolve_Stub(
IRpcStubBuffer *This,
IRpcChannelBuffer *_pRpcChannelBuffer,
PRPC_MESSAGE _pRpcMessage,
DWORD *_pdwStubPhase)
{
BSTR _M5;
HRESULT _RetVal;
MIDL_STUB_MESSAGE _StubMsg;
void __RPC_FAR *_p_bsShortcut;
BSTR bsShortcut;
long hWnd;
BSTR __RPC_FAR *pbsRet;
NdrStubInitialize(
_pRpcMessage,
&_StubMsg,
&Object_StubDesc,
_pRpcChannelBuffer);
_p_bsShortcut = &bsShortcut;
MIDL_memset(
_p_bsShortcut,
0,
sizeof( BSTR ));
pbsRet = 0;
RpcTryFinally
{
if ( (_pRpcMessage->DataRepresentation & 0X0000FFFFUL) != NDR_LOCAL_DATA_REPRESENTATION )
NdrConvert( (PMIDL_STUB_MESSAGE) &_StubMsg, (PFORMAT_STRING) &__MIDLProcFormatString.Format[62] );
hWnd = *(( long __RPC_FAR * )_StubMsg.Buffer)++;
NdrUserMarshalUnmarshall( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR * __RPC_FAR *)&_p_bsShortcut,
(PFORMAT_STRING) &__MIDLTypeFormatString.Format[840],
(unsigned char)0 );
pbsRet = &_M5;
MIDL_memset(
pbsRet,
0,
sizeof( BSTR ));
*_pdwStubPhase = STUB_CALL_SERVER;
_RetVal = (((IShortCut *) ((CStdStubBuffer *)This)->pvServerObject)->lpVtbl) -> Resolve(
(IShortCut *) ((CStdStubBuffer *)This)->pvServerObject,
hWnd,
bsShortcut,
pbsRet);
*_pdwStubPhase = STUB_MARSHAL;
_StubMsg.BufferLength = 4U + 11U;
NdrUserMarshalBufferSize( (PMIDL_STUB_MESSAGE) &_StubMsg,
(unsigned char __RPC_FAR *)pbsRet,
(PFORMAT_STRING) &__MIDLTypeFormatString.Format[854] );
_StubMsg.BufferLength += 16;
NdrStubGetBuffer(This, _pRpcChannelBuffer, &_StubMsg);
NdrUserMarshalMarshall( (PMIDL_STUB_MESSAGE)& _StubMsg,
(unsigned char __RPC_FAR *)pbsRet,
(PFORMAT_STRING) &__MIDLTypeFormatString.Format[854] );
_StubMsg.Buffer = (unsigned char __RPC_FAR *)(((long)_StubMsg.Buffer + 3) & ~ 0x3);
*(( HRESULT __RPC_FAR * )_StubMsg.Buffer)++ = _RetVal;
}
RpcFinally
{
NdrUserMarshalFree( &_StubMsg,
(unsigned char __RPC_FAR *)&bsShortcut,
&__MIDLTypeFormatString.Format[840] );
NdrPointerFree( &_StubMsg,
(unsigned char __RPC_FAR *)pbsRet,
&__MIDLTypeFormatString.Format[850] );
}
RpcEndFinally
_pRpcMessage->BufferLength =
(unsigned int)((long)_StubMsg.Buffer - (long)_pRpcMessage->Buffer);
}
extern const EXPR_EVAL ExprEvalRoutines[];
extern const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[2];
static const MIDL_STUB_DESC Object_StubDesc =
{
0,
NdrOleAllocate,
NdrOleFree,
0,
0,
0,
ExprEvalRoutines,
0,
__MIDLTypeFormatString.Format,
0, /* -error bounds_check flag */
0x20000, /* Ndr library version */
0,
0x300000f, /* MIDL Version 3.0.15 */
0,
UserMarshalRoutines,
0, /* Reserved1 */
0, /* Reserved2 */
0, /* Reserved3 */
0, /* Reserved4 */
0 /* Reserved5 */
};
CINTERFACE_PROXY_VTABLE(19) _IShortCutProxyVtbl =
{
&IID_IShortCut,
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 */ ,
IShortCut_get_Path_Proxy ,
IShortCut_put_Path_Proxy ,
IShortCut_get_Location_Proxy ,
IShortCut_put_Location_Proxy ,
IShortCut_get_WorkingDirectory_Proxy ,
IShortCut_put_WorkingDirectory_Proxy ,
IShortCut_get_Arguments_Proxy ,
IShortCut_put_Arguments_Proxy ,
IShortCut_get_ShowCommand_Proxy ,
IShortCut_put_ShowCommand_Proxy ,
IShortCut_Save_Proxy ,
IShortCut_Resolve_Proxy
};
static const PRPC_STUB_FUNCTION IShortCut_table[] =
{
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
STUB_FORWARDING_FUNCTION,
IShortCut_get_Path_Stub,
IShortCut_put_Path_Stub,
IShortCut_get_Location_Stub,
IShortCut_put_Location_Stub,
IShortCut_get_WorkingDirectory_Stub,
IShortCut_put_WorkingDirectory_Stub,
IShortCut_get_Arguments_Stub,
IShortCut_put_Arguments_Stub,
IShortCut_get_ShowCommand_Stub,
IShortCut_put_ShowCommand_Stub,
IShortCut_Save_Stub,
IShortCut_Resolve_Stub
};
CInterfaceStubVtbl _IShortCutStubVtbl =
{
&IID_IShortCut,
0,
19,
&IShortCut_table[-3],
CStdStubBuffer_DELEGATING_METHODS
};
#pragma data_seg(".rdata")
static void __RPC_USER IShortCut__userVARIANTExprEval_0000( PMIDL_STUB_MESSAGE pStubMsg )
{
struct _userVARIANT __RPC_FAR *pS = ( struct _userVARIANT __RPC_FAR * )(pStubMsg->StackTop - 8);
pStubMsg->Offset = 0;
pStubMsg->MaxCount = ( unsigned long )(pS->vt & 0x1fff);
}
static const EXPR_EVAL ExprEvalRoutines[] =
{
IShortCut__userVARIANTExprEval_0000
};
static const USER_MARSHAL_ROUTINE_QUADRUPLE UserMarshalRoutines[2] =
{
{
BSTR_UserSize
,BSTR_UserMarshal
,BSTR_UserUnmarshal
,BSTR_UserFree
},
{
VARIANT_UserSize
,VARIANT_UserMarshal
,VARIANT_UserUnmarshal
,VARIANT_UserFree
}
};
#if !defined(__RPC_WIN32__)
#error Invalid build platform for this stub.
#endif
static const MIDL_PROC_FORMAT_STRING __MIDLProcFormatString =
{
0,
{
0x51, /* FC_OUT_PARAM */
#ifndef _ALPHA_
0x1, /* x86, MIPS & PPC Stack size = 1 */
#else
0x2, /* Alpha Stack size = 2 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -