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

Function Hooked_SetWindowPos

core/src/browser/window.cc:20–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18
19static hook::Hook<decltype(&SetWindowPos)> Old_SetWindowPos;
20static 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
31static WNDPROC Old_WndProc;
32static LRESULT Hooked_WndProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected