browserWndRecord.h 661 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_WINDOW_RECORD_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_WINDOW_RECORD_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. class OmBrowserWndRecord
  8. {
  9. protected:
  10. OmBrowserWndRecord(HWND hwnd, const GUID *type);
  11. ~OmBrowserWndRecord();
  12. public:
  13. static HRESULT CreateInstance(HWND hwnd, const GUID *type, OmBrowserWndRecord **instance);
  14. public:
  15. ULONG AddRef();
  16. ULONG Release();
  17. HWND GetHwnd();
  18. HRESULT GetType(GUID *windowType);
  19. HRESULT IsEqualType(const GUID *windowType);
  20. protected:
  21. ULONG ref;
  22. HWND hwnd;
  23. GUID type;
  24. };
  25. #endif //NULLSOFT_WINAMP_OMBROWSER_WINDOW_RECORD_HEADER