1
0

ifc_ombrowserwndenum.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_WINDOW_ENUMERATOR_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_WINDOW_ENUMERATOR_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. // {8B184E07-1DC6-4d76-8FB3-A793FF4A062B}
  7. static const GUID IFC_OmBrowserWindowEnumerator =
  8. { 0x8b184e07, 0x1dc6, 0x4d76, { 0x8f, 0xb3, 0xa7, 0x93, 0xff, 0x4a, 0x6, 0x2b } };
  9. #include <bfc/dispatch.h>
  10. class __declspec(novtable) ifc_ombrowserwndenum : public Dispatchable
  11. {
  12. protected:
  13. ifc_ombrowserwndenum() {}
  14. ~ifc_ombrowserwndenum() {}
  15. public:
  16. HRESULT Next(unsigned long listSize, HWND *elementList, unsigned long *elementCount);
  17. HRESULT Reset(void);
  18. HRESULT Skip(unsigned long elementCount);
  19. public:
  20. DISPATCH_CODES
  21. {
  22. API_NEXT = 10,
  23. API_RESET = 20,
  24. API_SKIP = 30,
  25. };
  26. };
  27. inline HRESULT ifc_ombrowserwndenum::Next(unsigned long listSize, HWND *elementList, unsigned long *elementCount)
  28. {
  29. return _call(API_NEXT, (HRESULT)E_NOTIMPL, listSize, elementList, elementCount);
  30. }
  31. inline HRESULT ifc_ombrowserwndenum::Reset(void)
  32. {
  33. return _call(API_RESET, (HRESULT)E_NOTIMPL);
  34. }
  35. inline HRESULT ifc_ombrowserwndenum::Skip(unsigned long elementCount)
  36. {
  37. return _call(API_SKIP, (HRESULT)E_NOTIMPL, elementCount);
  38. }
  39. #endif //NULLSOFT_WINAMP_OMBROWSER_WINDOW_ENUMERATOR_INTERFACE_HEADER