PageRenderTime 36ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/Visual Studio 2008/CppExeCOMServer/CppExeCOMServer.idl

#
IDL | 34 lines | 30 code | 2 blank | 2 comment | 0 complexity | eb14b8e4748bec7e5866467e3a2c0875 MD5 | raw file
  1. import "oaidl.idl";
  2. import "ocidl.idl";
  3. // Define ISimpleObject interface
  4. [
  5. object,
  6. uuid(12C8AF02-340D-4fb7-969E-C309F5BA43ED),
  7. dual,
  8. helpstring("ISimpleObject Interface"),
  9. pointer_default(unique)
  10. ]
  11. interface ISimpleObject : IDispatch
  12. {
  13. [propget, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([out, retval] FLOAT* pVal);
  14. [propput, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([in] FLOAT newVal);
  15. [id(2), helpstring("method HelloWorld")] HRESULT HelloWorld([out,retval] BSTR* pRet);
  16. [id(3), helpstring("method GetProcessThreadID")] HRESULT GetProcessThreadID([out] LONG* pdwProcessId, [out] LONG* pdwThreadId);
  17. };
  18. // Library statement
  19. [
  20. uuid(6E43F33B-D957-45a0-9B38-F98B80AB0E30),
  21. version(1.0),
  22. helpstring("CppExeCOMServer 1.0 Type Library")
  23. ]
  24. library CppExeCOMServerLib
  25. {
  26. importlib("stdole32.tlb");
  27. [uuid(4B4B2F34-E34F-4fca-B721-E71CF774196A)]
  28. coclass SimpleObject
  29. {
  30. [default] interface ISimpleObject;
  31. };
  32. };