1
0

ifc_omstorageenum.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef NULLSOFT_WINAMP_OMSTORAGE_ENUMERATOR_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMSTORAGE_ENUMERATOR_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {31BF2BEF-4362-4277-A4E1-0589336BC55C}
  7. static const GUID IFC_OmStorageEnumerator =
  8. { 0x31bf2bef, 0x4362, 0x4277, { 0xa4, 0xe1, 0x5, 0x89, 0x33, 0x6b, 0xc5, 0x5c } };
  9. #include <bfc/dispatch.h>
  10. class ifc_omstorage;
  11. class __declspec(novtable) ifc_omstorageenumerator : public Dispatchable
  12. {
  13. protected:
  14. ifc_omstorageenumerator() {}
  15. ~ifc_omstorageenumerator() {}
  16. public:
  17. HRESULT Next(unsigned long listSize, ifc_omstorage **elementList, unsigned long *elementCount);
  18. HRESULT Reset(void);
  19. HRESULT Skip(unsigned long elementCount);
  20. public:
  21. DISPATCH_CODES
  22. {
  23. API_NEXT = 10,
  24. API_RESET = 20,
  25. API_SKIP = 30,
  26. };
  27. };
  28. inline HRESULT ifc_omstorageenumerator::Next(unsigned long listSize, ifc_omstorage **elementList, unsigned long *elementCount)
  29. {
  30. return _call(API_NEXT, (HRESULT)E_NOTIMPL, listSize, elementList, elementCount);
  31. }
  32. inline HRESULT ifc_omstorageenumerator::Reset(void)
  33. {
  34. return _call(API_RESET, (HRESULT)E_NOTIMPL);
  35. }
  36. inline HRESULT ifc_omstorageenumerator::Skip(unsigned long elementCount)
  37. {
  38. return _call(API_SKIP, (HRESULT)E_NOTIMPL, elementCount);
  39. }
  40. #endif //NULLSOFT_WINAMP_OMSTORAGE_ENUMERATOR_INTERFACE_HEADER