optionsHook.h 795 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HOOK_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HOOK_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include "./ifc_omconfigcallback.h"
  7. class ifc_omservice;
  8. class OptionsConfigHook : public ifc_omconfigcallback
  9. {
  10. protected:
  11. OptionsConfigHook(HWND hTarget);
  12. ~OptionsConfigHook();
  13. public:
  14. static HRESULT CreateInstance(HWND hTarget, OptionsConfigHook **instance);
  15. public:
  16. /* Dispatchable */
  17. size_t AddRef();
  18. size_t Release();
  19. int QueryInterface(GUID interface_guid, void **object);
  20. /* ifc_omconfigcallback */
  21. HRESULT ValueChanged(const GUID *configUid, UINT valueId, ULONG_PTR value);
  22. protected:
  23. RECVS_DISPATCH;
  24. protected:
  25. ULONG ref;
  26. HWND hwnd;
  27. };
  28. #endif //NULLSOFT_WINAMP_OMBROWSER_OPTIONS_HOOK_HEADER