MCPcopy Create free account
hub / github.com/aliasIsolation/aliasIsolation / terminationWatchThread

Function terminationWatchThread

src/dll/dllMain.cpp:22–40  ·  view source on GitHub ↗

A thread which sits in the background and checks whether the hook should unload. It will also monitor the keyboard for Alias Isolation disable/enable hotkeys.

Source from the content-addressed store, hash-verified

20// unload. It will also monitor the keyboard for Alias Isolation disable/enable
21// hotkeys.
22DWORD WINAPI terminationWatchThread(void *)
23{
24 while (true)
25 {
26 for (int i = 0; i < 5; ++i)
27 {
28 if ((GetKeyState(VK_CONTROL) & GetKeyState(VK_INSERT) & 0x80u) != 0u)
29 {
30 enableShaderHooks();
31 }
32 else if ((GetKeyState(VK_CONTROL) & GetKeyState(VK_DELETE) & 0x80u) != 0u)
33 {
34 disableShaderHooks();
35 }
36
37 Sleep(50);
38 }
39 }
40}
41
42LPTOP_LEVEL_EXCEPTION_FILTER WINAPI
43SetUnhandledExceptionFilter_hook(LPTOP_LEVEL_EXCEPTION_FILTER /*lpTopLevelExceptionFilter*/)

Callers

nothing calls this directly

Calls 2

enableShaderHooksFunction · 0.85
disableShaderHooksFunction · 0.85

Tested by

no test coverage detected