browserThread.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef NULLSOFT_WINAMP_OMBROWSER_BROWSERTHREAD_HEADER
  2. #define NULLSOFT_WINAMP_OMBROWSER_BROWSERTHREAD_HEADER
  3. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  4. #pragma once
  5. #endif
  6. #include <wtypes.h>
  7. interface IWebBrowser2;
  8. #define MSGF_BROWSERLOOP (MSGF_USER + 1)
  9. #define BHTF_QUITLOOP 0x00000001
  10. #define BHTF_BEGINDESTROY 0x00000002
  11. typedef HWND (CALLBACK *BTCREATEWNDPROC)(ULONG_PTR /*user*/);
  12. typedef BOOL (CALLBACK *BTKEYFILTERPROC)(HWND /*hwnd*/, MSG* /*pMsg*/);
  13. HANDLE BrowserThread_Create(HWND hWinamp, BTCREATEWNDPROC fnCreateWnd, ULONG_PTR user, BTKEYFILTERPROC fnKeyFilter, HWND *pWnd, DWORD *pThreadId);
  14. BOOL BrowserThread_IsQuiting();
  15. BOOL BrowserThread_SetFlags(UINT flags, UINT flagsMask, BOOL fAlarm);
  16. BOOL BrowserThread_WaitNavigateComplete(IWebBrowser2 *pWeb2, UINT waitMax);
  17. BOOL BrowserThread_PostDestroy(HWND hHost);
  18. BOOL BrowserThread_PostDestroyEx(DWORD threadId, HWND hHost);
  19. INT BrowserThread_ModalLoop(HWND hwnd, HANDLE hCancel, DWORD timeout);
  20. #define BTM_FIRST (WM_APP - 10)
  21. #define BTM_INITCONTAINER (BTM_FIRST + 0) // wParam - not used, lParam - not used, return - ignored
  22. #define BTM_RELEASECONTAINER (BTM_FIRST + 1) // wParam - not used, lParam - not used; return - ignored;
  23. #endif //NULLSOFT_WINAMP_OMBROWSER_BROWSERTHREAD_HEADER