Files
chatlog_alpha/wx_key/dllmain.cpp
lx1056758714-glitch 0afaf9ec00 集成wx_key.dll并优化微信进程与密钥管理
新增DLL方式的微信数据库密钥提取(优先于原生方式),集成wx_key.dll相关代码和开发文档,完善临时账户名称与进程PID的动态管理,增强微信进程状态监控和自动切换逻辑。更新README,详细说明项目功能、使用方法和DLL集成指南。
2025-12-14 17:47:30 +08:00

24 lines
614 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 远程Hook控制器DLL入口点
// 这个DLL在Flutter进程中运行不会被注入到目标进程
#include <Windows.h>
#define HOOK_EXPORTS
#include "include/hook_controller.h"
#pragma comment(lib, "Psapi.lib")
#pragma comment(lib, "version.lib")
// DLL 入口函数
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) {
switch (ul_reason_for_call) {
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hModule);
break;
case DLL_PROCESS_DETACH:
// 清理资源
CleanupHook();
break;
}
return TRUE;
}