diff options
| author | auth12 <[email protected]> | 2020-07-22 08:37:58 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-22 08:37:58 -0700 |
| commit | 7caedef9a8c343b63cef6e971f4f87660520bb82 (patch) | |
| tree | 66477c42a768bf5efb1177130347170c62f6cb60 /client/src/util/util.h | |
| parent | Added game selection. (diff) | |
| download | loader-7caedef9a8c343b63cef6e971f4f87660520bb82.tar.xz loader-7caedef9a8c343b63cef6e971f4f87660520bb82.zip | |
Client injection.
Process class implementation.
Diffstat (limited to 'client/src/util/util.h')
| -rw-r--r-- | client/src/util/util.h | 11 |
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 |