#41 IAT Hooking for all game modules
This commit is contained in:
parent
f58bc7117f
commit
28b4965611
7 changed files with 102 additions and 3 deletions
|
@ -48,6 +48,7 @@ BOOL GameHandlesClose;
|
|||
BOOL ChildWindowExists;
|
||||
DWORD NvOptimusEnablement = 1;
|
||||
DWORD AmdPowerXpressRequestHighPerformance = 1;
|
||||
HMODULE DDrawModule;
|
||||
|
||||
//BOOL WINAPI DllMainCRTStartup(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
|
||||
BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
||||
|
@ -56,6 +57,8 @@ BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
|
|||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
{
|
||||
DDrawModule = hDll;
|
||||
|
||||
char buf[1024];
|
||||
if (GetEnvironmentVariable("__COMPAT_LAYER", buf, sizeof(buf)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue