Refactoring

This commit is contained in:
Changhua
2025-02-04 22:29:54 +08:00
parent 9e306e2452
commit 0d228745ac
4 changed files with 37 additions and 21 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ constexpr std::string_view SUPPORT_VERSION = "3.9.11.25";
UINT64 g_WeChatWinDllAddr = 0;
void InitSpy(LPVOID args)
int InitSpy(LPVOID args)
{
auto *pp = static_cast<util::PortPath *>(args);
@@ -28,11 +28,12 @@ void InitSpy(LPVOID args)
if (version != SUPPORT_VERSION) {
LOG_ERROR(msg);
MessageBoxA(NULL, msg.c_str(), "错误", MB_ICONERROR);
return;
return -1;
}
LOG_INFO(msg);
RpcStartServer(pp->port);
return 0;
}
void CleanupSpy()
+1 -1
View File
@@ -2,5 +2,5 @@
#include "framework.h"
void InitSpy(int port);
int InitSpy(int port);
void CleanupSpy();