Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: S D E V . I D L
  7. //
  8. // Contents: IDL file for sample device
  9. //
  10. // Notes:
  11. //
  12. // Author: mbend 26 Sep 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. cpp_quote("//+-------------------------------------------------------------------------")
  16. cpp_quote("//")
  17. cpp_quote("// Microsoft Windows")
  18. cpp_quote("// Copyright (C) Microsoft Corporation, 1992-2000.")
  19. cpp_quote("//")
  20. cpp_quote("//--------------------------------------------------------------------------")
  21. cpp_quote("#if ( _MSC_VER >= 800 )")
  22. cpp_quote("#pragma warning(disable:4201)")
  23. cpp_quote("#endif")
  24. #ifndef DO_NO_IMPORTS
  25. import "ocidl.idl";
  26. #endif
  27. //////////////////////////////////////////
  28. // Type library
  29. [
  30. uuid(EE6ECBF9-0EB2-44e4-A274-FAC45A72C01F),
  31. version(1.0),
  32. helpstring("UPnP Device Host Sample")
  33. ]
  34. library UPnPDeviceHostSampleLib
  35. {
  36. importlib("stdole32.tlb");
  37. importlib("stdole2.tlb");
  38. typedef [v1_enum] enum SAMPLE_DISPIDS
  39. {
  40. DISPID_POWER = 1, DISPID_LEVEL, DISPID_POWER_ON, DISPID_POWER_OFF,
  41. DISPID_SET_LEVEL, DISPID_INCREASE_LEVEL, DISPID_DECREASE_LEVEL,
  42. DISPID_TEST
  43. } SAMPLE_DISPIDS;
  44. [
  45. oleautomation,
  46. uuid(774B4314-82C7-4560-BBC8-960F8C7139F7),
  47. pointer_default(unique)
  48. ]
  49. interface IUPnPSampleService : IUnknown
  50. {
  51. [id(DISPID_POWER), propget] HRESULT Power([out, retval] VARIANT_BOOL * pbPower);
  52. [id(DISPID_POWER), propput] HRESULT Power([in] VARIANT_BOOL bPower);
  53. [id(DISPID_LEVEL), propget] HRESULT Level([out, retval] long * pnLevel);
  54. [id(DISPID_LEVEL), propput] HRESULT Level([in] long nLevel);
  55. [id(DISPID_POWER_ON)] HRESULT PowerOn();
  56. [id(DISPID_POWER_OFF)] HRESULT PowerOff();
  57. [id(DISPID_SET_LEVEL)] HRESULT SetLevel([in] long nLevel);
  58. [id(DISPID_INCREASE_LEVEL)] HRESULT IncreaseLevel();
  59. [id(DISPID_DECREASE_LEVEL)] HRESULT DecreaseLevel();
  60. [id(DISPID_TEST)] HRESULT Test([in] long nMultiplier, [in, out] long * pnNewValue, [out, retval] long * pnOldValue);
  61. }
  62. [
  63. uuid(7648DFD4-79F5-492f-A277-CDA01B721CA1)
  64. ]
  65. coclass UPnPSampleDevice
  66. {
  67. [default] interface IUnknown;
  68. }
  69. };