supportedCommand.h 987 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_SUPPORTED_COMMAND_HEADER
  2. #define _NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_SUPPORTED_COMMAND_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. #include <ifc_devicesupportedcommand.h>
  8. class DeviceSupportedCommand : public ifc_devicesupportedcommand
  9. {
  10. protected:
  11. DeviceSupportedCommand();
  12. ~DeviceSupportedCommand();
  13. public:
  14. static HRESULT CreateInstance(const char *name,
  15. DeviceSupportedCommand **instance);
  16. public:
  17. /* Dispatchable */
  18. size_t AddRef();
  19. size_t Release();
  20. int QueryInterface(GUID interface_guid, void **object);
  21. /* ifc_devicesupportedcommand */
  22. const char *GetName();
  23. HRESULT GetFlags(DeviceCommandFlags *flags);
  24. public:
  25. HRESULT SetFlags(DeviceCommandFlags mask, DeviceCommandFlags value);
  26. protected:
  27. size_t ref;
  28. char *name;
  29. DeviceCommandFlags flags;
  30. protected:
  31. RECVS_DISPATCH;
  32. };
  33. #endif //_NULLSOFT_WINAMP_GEN_DEVICE_PROVIDER_SUPPORTED_COMMAND_HEADER