| 18 | |
| 19 | static hook::Hook<decltype(&SetWindowPos)> Old_SetWindowPos; |
| 20 | static BOOL WINAPI Hooked_SetWindowPos(HWND hWnd, |
| 21 | HWND hWndInsertAfter, int X, int Y, int cx, int cy, UINT uFlags) |
| 22 | { |
| 23 | if (hWnd == browser::window && hWndInsertAfter == HWND_TOPMOST) |
| 24 | { |
| 25 | return TRUE; |
| 26 | } |
| 27 | |
| 28 | return Old_SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags); |
| 29 | } |
| 30 | |
| 31 | static WNDPROC Old_WndProc; |
| 32 | static LRESULT Hooked_WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp) |
nothing calls this directly
no outgoing calls
no test coverage detected