Üye
Cs2 mutex kodu bunu nasıl kullanırın
Code:
typedef __int64(*Plat_CreateGameInstanceMutex_t)();
Plat_CreateGameInstanceMutex_t original_Plat_CreateGameInstanceMutex = nullptr;
__int64 WINAPI Hooked_Plat_CreateGameInstanceMutex() {
return 1;
}
HMODULE tier0 = GetModuleHandleA("tier0.dll");
void* pCreateGameInstanceMutex = reinterpret_cast<void*>(GetProcAddress(tier0, "Plat_CreateGameInstanceMutex"));
MH_CreateHook(pCreateGameInstanceMutex, &Hooked_Plat_CreateGameInstanceMutex, reinterpret_cast<void**>(&original_Plat_CreateGameInstanceMutex))
MH_EnableHook(pCreateGameInstanceMutex)
Code:
typedef __int64(*Plat_CreateGameInstanceMutex_t)();
Plat_CreateGameInstanceMutex_t original_Plat_CreateGameInstanceMutex = nullptr;
__int64 WINAPI Hooked_Plat_CreateGameInstanceMutex() {
return 1;
}
HMODULE tier0 = GetModuleHandleA("tier0.dll");
void* pCreateGameInstanceMutex = reinterpret_cast<void*>(GetProcAddress(tier0, "Plat_CreateGameInstanceMutex"));
MH_CreateHook(pCreateGameInstanceMutex, &Hooked_Plat_CreateGameInstanceMutex, reinterpret_cast<void**>(&original_Plat_CreateGameInstanceMutex))
MH_EnableHook(pCreateGameInstanceMutex)