⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 call_as.cpp

📁 经验交流,从网上下载的好东西望大家分享
💻 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 + -