Impl x32/x64 check

This commit is contained in:
Changhua
2024-07-08 00:51:26 +08:00
parent 0279b1136e
commit 478bbdfdab
3 changed files with 34 additions and 0 deletions
+5
View File
@@ -47,6 +47,11 @@ int WxInitSDK(bool debug, int port)
return status;
}
if (!IsProcessX64(wcPid)) {
MessageBox(NULL, L"只支持 64 位微信", L"WxInitSDK", 0);
return -1;
}
Sleep(2000); // 等待微信打开
wcProcess = InjectDll(wcPid, spyDllPath, &spyBase);
if (wcProcess == NULL) {