component.idl
上传用户:bjlvip
上传日期:2010-02-08
资源大小:744k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. // component.idl
  2. import "unknwn.idl";
  3. [ object, uuid(10000777-0000-0000-0000-000000000001) ]
  4. interface IPointerTest : IUnknown
  5. {
  6. // For in process only, otherwise must be commented out
  7. [local] HRESULT GetInterfacePointer1([out] void** ppv);
  8. HRESULT GetInterfacePointer2([in] REFIID riid, [out, iid_is(riid)] IUnknown** ppv);
  9. HRESULT GetInterfacePointer3([out] IPointerTest** ppv);
  10. [local] HRESULT GetInterfacePointer4([in] REFIID riid, [out, iid_is(riid)] void** ppv);
  11. [call_as(GetInterfacePointer4)] HRESULT RemoteGetInterfacePointer4([in] REFIID riid, [out, iid_is(riid)] IUnknown** ppv);
  12. }
  13. [ uuid(10000778-0000-0000-0000-000000000001),
  14.   helpstring("IDL Test Component Type Library"),
  15.   version(1.0) ]
  16. library Component
  17. {
  18. importlib("stdole32.tlb");
  19. interface IPointerTest;
  20. [ uuid(10000779-0000-0000-0000-000000000001) ]
  21. coclass PointerTest
  22. {
  23. interface IPointerTest;
  24. }
  25. };