call_as.cpp
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
- // 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 "Componentcomponent.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);
- }