📄 call_as.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -