call_as.cpp
来自「经验交流,从网上下载的好东西望大家分享」· C++ 代码 · 共 18 行
CPP
18 行
// call_as.cpp
// Compile and then link this file with the proxy-stub DLL generated by MIDL
// Find declarations for these functions at the bottom of the MIDL generated.h file
#include "Component\component.h"
// [local] HRESULT GetInterfacePointer4([in] REFIID riid, [out, iid_is(riid)] void** ppv);
// [call_as(GetInterfacePointer4)] HRESULT RemoteGetInterfacePointer4([in] REFIID riid, [out, iid_is(riid)] IUnknown** ppv);
HRESULT __stdcall IPointerTest_GetInterfacePointer4_Proxy(IPointerTest* Me, REFIID riid, void** ppv)
{
return IPointerTest_RemoteGetInterfacePointer4_Proxy(Me, riid, (IUnknown**)ppv);
}
HRESULT __stdcall IPointerTest_GetInterfacePointer4_Stub(IPointerTest* Me, REFIID riid, IUnknown** ppv)
{
return Me->GetInterfacePointer4(riid, (void**)ppv);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?