aboutsummaryrefslogtreecommitdiff
path: root/client/src/util/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/util/util.h')
-rw-r--r--client/src/util/util.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/client/src/util/util.h b/client/src/util/util.h
index 8658ce6..a4ff8c9 100644
--- a/client/src/util/util.h
+++ b/client/src/util/util.h
@@ -5,16 +5,17 @@
namespace util {
- extern std::unordered_map<std::string, pe::image> loaded_modules;
+ extern std::unordered_map<std::string, pe::virtual_image> loaded_modules;
std::string wide_to_multibyte(const std::wstring& str);
+ std::wstring multibyte_to_wide(const std::string &str);
- native::_PEB* get_peb();
+ native::_PEB* cur_peb();
bool init();
- static pe::image& ntdll() {
- static pe::image nt{};
+ static pe::virtual_image& ntdll() {
+ static pe::virtual_image nt{};
if (!nt) {
nt = loaded_modules["ntdll.dll"];
nt.parse_exports();
@@ -22,5 +23,7 @@ namespace util {
return nt;
}
+ bool close_handle(HANDLE handle);
+
}; // namespace util