ifc_deviceobjectenum.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #ifndef _NULLSOFT_WINAMP_DEVICES_DEVICE_OBJECT_ENUMERATOR_INTERFACE_HEADER
  2. #define _NULLSOFT_WINAMP_DEVICES_DEVICE_OBJECT_ENUMERATOR_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/platform/guid.h>
  7. // {21135710-8161-46c8-83C5-134CC1E832DF}
  8. static const GUID IFC_DeviceObjectEnum =
  9. { 0x21135710, 0x8161, 0x46c8, { 0x83, 0xc5, 0x13, 0x4c, 0xc1, 0xe8, 0x32, 0xdf } };
  10. #include <bfc/dispatch.h>
  11. class ifc_deviceobject;
  12. // supports AddRef(), Release(), QueryInterface()
  13. class __declspec(novtable) ifc_deviceobjectenum : public Dispatchable
  14. {
  15. protected:
  16. ifc_deviceobjectenum() {}
  17. ~ifc_deviceobjectenum() {}
  18. public:
  19. HRESULT Next(ifc_deviceobject **buffer, size_t bufferMax, size_t *fetched);
  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_deviceobjectenum::Next(ifc_deviceobject **buffer, size_t bufferMax, size_t *fetched)
  33. {
  34. return _call(API_NEXT, (HRESULT)E_NOTIMPL, buffer, bufferMax, fetched);
  35. }
  36. inline HRESULT ifc_deviceobjectenum::Reset(void)
  37. {
  38. return _call(API_RESET, (HRESULT)E_NOTIMPL);
  39. }
  40. inline HRESULT ifc_deviceobjectenum::Skip(size_t count)
  41. {
  42. return _call(API_SKIP, (HRESULT)E_NOTIMPL, count);
  43. }
  44. inline HRESULT ifc_deviceobjectenum::GetCount(size_t *count)
  45. {
  46. return _call(API_GETCOUNT, (HRESULT)E_NOTIMPL, count);
  47. }
  48. #endif //_NULLSOFT_WINAMP_DEVICES_DEVICE_OBJECT_ENUMERATOR_INTERFACE_HEADER