hook SetForegroundWindow for profile links

This commit is contained in:
FunkyFr3sh 2023-04-09 20:06:51 +02:00
parent f86ad29835
commit 766e4b434c
4 changed files with 16 additions and 1 deletions

View file

@ -558,6 +558,16 @@ HWND WINAPI fake_GetForegroundWindow()
return real_GetForegroundWindow();
}
BOOL WINAPI fake_SetForegroundWindow(HWND hWnd)
{
if (g_ddraw && g_ddraw->bnet_active)
{
return TRUE;
}
return real_SetForegroundWindow(hWnd);
}
HHOOK WINAPI fake_SetWindowsHookExA(int idHook, HOOKPROC lpfn, HINSTANCE hmod, DWORD dwThreadId)
{
if (idHook == WH_KEYBOARD_LL && hmod && GetModuleHandle("AcGenral") == hmod)