ifc_devicecommandeditor.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_EDITOR_INTERFACE_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_EDITOR_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/platform/guid.h>
  7. // {94A35125-3AD5-4339-870E-4ACB24F00FE8}
  8. static const GUID IFC_DeviceCommandEditor =
  9. { 0x94a35125, 0x3ad5, 0x4339, { 0x87, 0xe, 0x4a, 0xcb, 0x24, 0xf0, 0xf, 0xe8 } };
  10. #include <bfc/dispatch.h>
  11. class ifc_deviceiconstore;
  12. class __declspec(novtable) ifc_devicecommandeditor : public Dispatchable
  13. {
  14. protected:
  15. ifc_devicecommandeditor() {}
  16. ~ifc_devicecommandeditor() {}
  17. public:
  18. HRESULT GetIconStore(ifc_deviceiconstore **iconStore);
  19. HRESULT SetDisplayName(const wchar_t *displayName);
  20. HRESULT SetDescription(const wchar_t *description);
  21. public:
  22. DISPATCH_CODES
  23. {
  24. API_GETICONSTORE = 10,
  25. API_SETDISPLAYNAME = 20,
  26. API_SETDESCRIPTION = 30,
  27. };
  28. };
  29. inline HRESULT ifc_devicecommandeditor::GetIconStore(ifc_deviceiconstore **iconStore)
  30. {
  31. return _call(API_GETICONSTORE, (HRESULT)E_NOTIMPL, iconStore);
  32. }
  33. inline HRESULT ifc_devicecommandeditor::SetDisplayName(const wchar_t *displayName)
  34. {
  35. return _call(API_SETDISPLAYNAME, (HRESULT)E_NOTIMPL, displayName);
  36. }
  37. inline HRESULT ifc_devicecommandeditor::SetDescription(const wchar_t *description)
  38. {
  39. return _call(API_SETDESCRIPTION, (HRESULT)E_NOTIMPL, description);
  40. }
  41. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_COMMAND_EDITOR_INTERFACE_HEADER