feat: 消息同步
This commit is contained in:
1 parent
2767576351
commit
8ab646be96
13 files changed
+490
-3
No files matched your search
@@ -56,6 +56,8 @@ bool CreateConsole();
|
||||
void CloseConsole();
|
||||
|
||||
void HideModule(HMODULE module);
|
||||
|
||||
bool IsDigit(const std::string &str);
|
||||
} // namespace utils
|
||||
} // namespace base
|
||||
#endif
|
||||
+17
-1
@@ -1,7 +1,10 @@
|
||||
#include "include/utils.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <winternl.h>
|
||||
|
||||
#include <fstream>
|
||||
|
||||
#include "utils.h"
|
||||
namespace base {
|
||||
namespace utils {
|
||||
const std::string hex_table = "0123456789abcdef";
|
||||
@@ -151,5 +154,18 @@ void HideModule(HMODULE module) {
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool IsDigit(const std::string &str) {
|
||||
if (str.length() == 0) {
|
||||
return false;
|
||||
}
|
||||
for (auto it : str) {
|
||||
if (it < '0' || it > '9') {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace utils
|
||||
} // namespace base
|
||||
Reference in new issue
Block a user