步骤
- 安装ProcessExplorer, 下载地址见https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer;
- 启动Wechat客户端,并登录;
- 在ProcessExplorer中找到微信WeChat app,右键 -> show properties,找到两个Mutant,分别是 WeChat_GlobalConfig_Multi_Process_Mutex 和 WeChat_App_Instance_Indentity_MutexName,右键 -> close handle;
- 再次启动WeChat,可以进行第二个账号的登录。
跨进程通信通过互斥信号量实现,关闭Mutant,微信进程彼此无法识别到另一个的存在,单开限制失效。