1
0

ifc_ombrowserevent.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_EVENTHANDLER_INTERFACE_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_EVENTHANDLER_INTERFACE_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <bfc/dispatch.h>
  7. // {900AD92F-E2B9-4615-B1DB-ACC37FCD676C}
  8. static const GUID IFC_OmBrowserEvent =
  9. { 0x900ad92f, 0xe2b9, 0x4615, { 0xb1, 0xdb, 0xac, 0xc3, 0x7f, 0xcd, 0x67, 0x6c } };
  10. class __declspec(novtable) ifc_ombrowserevent : public Dispatchable
  11. {
  12. protected:
  13. ifc_ombrowserevent() {}
  14. ~ifc_ombrowserevent() {}
  15. public:
  16. void WindowCreate(HWND hwnd, const GUID *windowType);
  17. void WindowClose(HWND hwnd, const GUID *windowType);
  18. public:
  19. DISPATCH_CODES
  20. {
  21. API_WINDOWCREATE = 10,
  22. API_WINDOWCLOSE = 20,
  23. };
  24. };
  25. inline void ifc_ombrowserevent::WindowCreate(HWND hwnd, const GUID *windowType)
  26. {
  27. _voidcall(API_WINDOWCREATE, hwnd, windowType);
  28. }
  29. inline void ifc_ombrowserevent::WindowClose(HWND hwnd, const GUID *windowType)
  30. {
  31. _voidcall(API_WINDOWCLOSE, hwnd, windowType);
  32. }
  33. #endif //NULLSOFT_WINAMP_OMBROWSER_EVENTHANDLER_INTERFACE_HEADER