|
typedef HANDLE(__stdcall* CreateMutexWFn)(LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, LPCWSTR lpName);
HANDLE __stdcall hookCreateMutexW(LPSECURITY_ATTRIBUTES lpMutexAttributes, BOOL bInitialOwner, LPCWSTR lpName) {
CreateMutexWFn fn = *(CreateMutexWFn*)0x0155A1A4;
return fn(lpMutexAttributes, bInitialOwner, NULL);
}
//支持双开
writeCallCode((LPVOID*)0x0112D97E, (PVOID)hookCreateMutexW)
writeCallCode((LPVOID*)0x00706872, (PVOID)hookCreateMutexW)
0112D97E FF15 A4A15501 call dword ptr ds:[0x155A1A4] ; 互斥体创建
00706872 FF15 A4A15501 call dword ptr ds:[0x155A1A4] ; 互斥体创建
求助大佬可以转换易语言吗? |
|