ifc_devicesupportedcommandenum.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_ENUMERATOR_INTERFACE_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_ENUMERATOR_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/platform/guid.h>
  7. // {BE64390B-D4D0-41d5-87A7-60597F410D97}
  8. static const GUID IFC_DeviceSupportedCommandEnum =
  9. { 0xbe64390b, 0xd4d0, 0x41d5, { 0x87, 0xa7, 0x60, 0x59, 0x7f, 0x41, 0xd, 0x97 } };
  10. #include <bfc/dispatch.h>
  11. class ifc_devicesupportedcommand;
  12. // supports AddRef(), Release(), QueryInterface()
  13. class __declspec(novtable) ifc_devicesupportedcommandenum : public Dispatchable
  14. {
  15. protected:
  16. ifc_devicesupportedcommandenum() {}
  17. ~ifc_devicesupportedcommandenum() {}
  18. public:
  19. HRESULT Next(ifc_devicesupportedcommand **buffer, size_t bufferMax, size_t *count);
  20. HRESULT Reset(void);
  21. HRESULT Skip(size_t count);
  22. HRESULT GetCount(size_t *count);
  23. public:
  24. DISPATCH_CODES
  25. {
  26. API_NEXT = 10,
  27. API_RESET = 20,
  28. API_SKIP = 30,
  29. API_GETCOUNT = 40,
  30. };
  31. };
  32. inline HRESULT ifc_devicesupportedcommandenum::Next(ifc_devicesupportedcommand **buffer, size_t bufferMax, size_t *count)
  33. {
  34. return _call(API_NEXT, (HRESULT)E_NOTIMPL, buffer, bufferMax, count);
  35. }
  36. inline HRESULT ifc_devicesupportedcommandenum::Reset(void)
  37. {
  38. return _call(API_RESET, (HRESULT)E_NOTIMPL);
  39. }
  40. inline HRESULT ifc_devicesupportedcommandenum::Skip(size_t count)
  41. {
  42. return _call(API_SKIP, (HRESULT)E_NOTIMPL, count);
  43. }
  44. inline HRESULT ifc_devicesupportedcommandenum::GetCount(size_t *count)
  45. {
  46. return _call(API_GETCOUNT, (HRESULT)E_NOTIMPL, count);
  47. }
  48. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_SUPPORTED_COMMAND_ENUMERATOR_INTERFACE_HEADER