Refactoring

This commit is contained in:
Changhua 2024-04-26 23:23:00 +08:00
parent a9e31cf65a
commit ebb45d3cb1
4 changed files with 4 additions and 4 deletions

View File

@ -24,6 +24,9 @@ namespace fs = std::filesystem;
extern bool gIsListeningPyq;
extern WxCalls_t g_WxCalls;
extern DWORD g_WeChatWinDllAddr;
int IsLogin(void) { return (int)GET_DWORD(g_WeChatWinDllAddr + g_WxCalls.login); }
#if 0
static string get_key(uint8_t header1, uint8_t header2, uint8_t *key)
{

View File

@ -3,6 +3,7 @@
#include "stdint.h"
#include <string>
int IsLogin(void);
std::string GetAudio(uint64_t id, std::string dir);
std::string DecryptImage(std::string src, std::string dst);
int RefreshPyq(uint64_t id);

View File

@ -40,8 +40,6 @@
namespace fs = std::filesystem;
extern int IsLogin(void); // Defined in spy.cpp
bool gIsListening = false;
bool gIsListeningPyq = false;
mutex gMutex;

View File

@ -41,5 +41,3 @@ void CleanupSpy()
LOG_DEBUG("CleanupSpy");
RpcStopServer();
}
int IsLogin(void) { return (int)GET_DWORD(g_WeChatWinDllAddr + g_WxCalls.login); }