| 6 | #if OS_WIN |
| 7 | static hook::Hook<decltype(&ShowWindow)> Old_ShowWindow; |
| 8 | static BOOL WINAPI Hooked_ShowWindow(HWND hWnd, int nCmdShow) |
| 9 | { |
| 10 | if (hWnd == browser::window |
| 11 | && (nCmdShow == SW_SHOWNOACTIVATE || nCmdShow == SW_SHOW)) |
| 12 | { |
| 13 | nCmdShow = SW_SHOWNA; |
| 14 | } |
| 15 | |
| 16 | return Old_ShowWindow(hWnd, nCmdShow); |
| 17 | } |
| 18 | |
| 19 | static hook::Hook<decltype(&SetWindowPos)> Old_SetWindowPos; |
| 20 | static BOOL WINAPI Hooked_SetWindowPos(HWND hWnd, |
nothing calls this directly
no outgoing calls
no test coverage detected