mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-21 23:13:08 +08:00
Feat&Improve: Support gen pass code binding with domain
This commit is contained in:
@@ -603,7 +603,7 @@ public:
|
||||
char protoType; // Э<><D0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
char runningType; // <20><><EFBFBD>з<EFBFBD>ʽ
|
||||
char szGroupName[24]; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
char runasAdmin; // <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
char runasAdmin; // <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><C8A8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
char szReserved[11]; // ռλ<D5BC><CEBB>ʹ<EFBFBD>ṹ<EFBFBD><E1B9B9>ռ<EFBFBD><D5BC>300<30>ֽ<EFBFBD>
|
||||
uint64_t clientID; // <20>ͻ<EFBFBD><CDBB><EFBFBD>Ψһ<CEA8><D2BB>ʶ
|
||||
uint64_t parentHwnd; // <20><><EFBFBD><EFBFBD><EFBFBD>̴<EFBFBD><CCB4>ھ<EFBFBD><DABE><EFBFBD>
|
||||
@@ -1140,27 +1140,33 @@ public:
|
||||
typedef struct CharMsg {
|
||||
char data[256];
|
||||
bool needFree;
|
||||
CharMsg(const char* msg, bool free = true) {
|
||||
CharMsg(const char* msg, bool free = true)
|
||||
{
|
||||
memset(data, 0, sizeof(data));
|
||||
strcpy_s(data, msg);
|
||||
needFree = free;
|
||||
}
|
||||
CharMsg(int len, bool free = true) {
|
||||
CharMsg(int len, bool free = true)
|
||||
{
|
||||
memset(data, 0, sizeof(data));
|
||||
needFree = free;
|
||||
}
|
||||
}CharMsg;
|
||||
} CharMsg;
|
||||
|
||||
typedef struct ClientMsg {
|
||||
char cmd;
|
||||
char title[31];
|
||||
char text[512];
|
||||
ClientMsg() { memset(this, 0, sizeof(*this)); }
|
||||
ClientMsg(const char* title, const char* text) {
|
||||
ClientMsg()
|
||||
{
|
||||
memset(this, 0, sizeof(*this));
|
||||
}
|
||||
ClientMsg(const char* title, const char* text)
|
||||
{
|
||||
cmd = TOKEN_CLIENT_MSG;
|
||||
strcpy_s(this->title, title ? title : "<EFBFBD><EFBFBD>ʾ<EFBFBD><EFBFBD>Ϣ");
|
||||
strcpy_s(this->text, text ? text : "");
|
||||
}
|
||||
}ClientMsg;
|
||||
} ClientMsg;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -91,9 +91,9 @@ public:
|
||||
auto timestamp = getCurrentTimestamp();
|
||||
std::string id = pid.empty() ? "" : "[" + pid + "]";
|
||||
|
||||
std::string logEntry = file && line ?
|
||||
id + "[" + timestamp + "] [" + file + ":" + std::to_string(line) + "] " + message:
|
||||
id + "[" + timestamp + "] " + message;
|
||||
std::string logEntry = file && line ?
|
||||
id + "[" + timestamp + "] [" + file + ":" + std::to_string(line) + "] " + message:
|
||||
id + "[" + timestamp + "] " + message;
|
||||
if (enable) {
|
||||
if (running) {
|
||||
std::lock_guard<std::mutex> lock(queueMutex);
|
||||
@@ -261,11 +261,13 @@ inline const char* getFileName(const char* path)
|
||||
|
||||
#endif // _WIN32
|
||||
|
||||
inline void Log(const char* message) {
|
||||
inline void Log(const char* message)
|
||||
{
|
||||
return Logger::getInstance().log(NULL, 0, "%s", message);
|
||||
}
|
||||
|
||||
inline void Logf(const char* file, int line, const char* format, ...) {
|
||||
inline void Logf(const char* file, int line, const char* format, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
char message[1024];
|
||||
|
||||
@@ -58,7 +58,8 @@ template<class _Ty>
|
||||
using clean_type = typename std::remove_const_t<std::remove_reference_t<_Ty>>;
|
||||
|
||||
template <int _size, char _key1, char _key2, typename T>
|
||||
class skCrypter {
|
||||
class skCrypter
|
||||
{
|
||||
public:
|
||||
__forceinline constexpr skCrypter(T* data)
|
||||
{
|
||||
@@ -123,7 +124,7 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
T _storage[_size]{};
|
||||
T _storage[_size] {};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user