MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / Hooked_ShowWindow

Function Hooked_ShowWindow

core/src/browser/window.cc:8–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6#if OS_WIN
7static hook::Hook<decltype(&ShowWindow)> Old_ShowWindow;
8static 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
19static hook::Hook<decltype(&SetWindowPos)> Old_SetWindowPos;
20static BOOL WINAPI Hooked_SetWindowPos(HWND hWnd,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected