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

/Visual Studio 2008/ATLCOMService/ATLCOMService.idl

#
IDL | 51 lines | 44 code | 3 blank | 4 comment | 0 complexity | 9f4e1bdc1e53025dc11c41c1b62e2cbb MD5 | raw file
  1. // ATLCOMService.idl : IDL source for ATLCOMService
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (ATLCOMService.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. [
  8. object,
  9. uuid(1B877090-76CD-4EDE-8115-EC4CCD9676F3),
  10. dual,
  11. nonextensible,
  12. helpstring("ISimpleObject Interface"),
  13. pointer_default(unique)
  14. ]
  15. interface ISimpleObject : IDispatch{
  16. [propget, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([out, retval] FLOAT* pVal);
  17. [propput, id(1), helpstring("property FloatProperty")] HRESULT FloatProperty([in] FLOAT newVal);
  18. [id(2), helpstring("method HelloWorld")] HRESULT HelloWorld([out,retval] BSTR* pRet);
  19. [id(3), helpstring("method GetProcessThreadID")] HRESULT GetProcessThreadID([out] LONG* pdwProcessId, [out] LONG* pdwThreadId);
  20. };
  21. [
  22. uuid(CC2CA6F0-2220-4D77-BA46-4BCB62156A28),
  23. version(1.0),
  24. helpstring("ATLCOMService 1.0 Type Library")
  25. ]
  26. library ATLCOMServiceLib
  27. {
  28. importlib("stdole2.tlb");
  29. [
  30. uuid(7DACF5E9-2885-4E4E-83DD-CA6CC3A88B6D),
  31. helpstring("_ISimpleObjectEvents Interface")
  32. ]
  33. dispinterface _ISimpleObjectEvents
  34. {
  35. properties:
  36. methods:
  37. [id(1), helpstring("method FloatPropertyChanging")] void FloatPropertyChanging([in] FLOAT NewValue, [in,out] VARIANT_BOOL* Cancel);
  38. };
  39. [
  40. uuid(388F1C82-ED00-4966-9590-02F6B9CCA41B),
  41. helpstring("SimpleObject Class")
  42. ]
  43. coclass SimpleObject
  44. {
  45. [default] interface ISimpleObject;
  46. [default, source] dispinterface _ISimpleObjectEvents;
  47. };
  48. };