From 622667b81b0fafc7e46054cd5e6ab323cc4e94bf Mon Sep 17 00:00:00 2001 From: _xeroxz Date: Mon, 8 Mar 2021 22:06:21 +0000 Subject: [PATCH] Update README.md --- README.md | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/README.md b/README.md index 3f5bda1..88b7a2c 100644 --- a/README.md +++ b/README.md @@ -721,32 +721,6 @@ ffff998b`c5368c90 c3 ret This example uses WinAPI's to allocate virtual memory in another process and also to copy virtual memory. Only exported routines from loaded DLL's in the target process can be resolved. -```cpp -theo::resolve_symbol_t _resolver = - [&, &extern_symbols = extern_symbols](const char* symbol_name) -> std::uintptr_t -{ - auto loaded_modules = std::make_unique(64); - std::uintptr_t result = 0u, loaded_module_sz = 0u; - - if (!EnumProcessModules(phandle, - loaded_modules.get(), 512, (PDWORD)&loaded_module_sz)) - return {}; - - for (auto i = 0u; i < loaded_module_sz / 8u; i++) - { - wchar_t file_name[MAX_PATH] = L""; - if (!GetModuleFileNameExW(phandle, - loaded_modules.get()[i], file_name, _countof(file_name))) - continue; - - if ((result = reinterpret_cast( - GetProcAddress(LoadLibrary(file_name), symbol_name)))) - break; - } - return result; -}; -``` - # License - BSD 3-Clause Copyright (c) 2021, _xeroxz