❗ my friend's funiest source code
You just need one thread. There is more than one way to prevent the game from terminating it:
1) Inject a simple jump in a code cave of crossfire.exe / cshell.dll that points to your real thread code
2) Hook TerminateThread() and return, if the game wants to close your hotkey thread
1) Inject a simple jump in a code cave of crossfire.exe / cshell.dll that points to your real thread code
2) Hook TerminateThread() and return, if the game wants to close your hotkey thread

