diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-09-21 19:33:10 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-09-21 19:33:10 +0200 |
commit | da0203280a9f8a3a93bec70f5bd37ad021d05ffc (patch) | |
tree | 854e3cc061742a2e2273c93739433cc2c53bb2cd /include | |
parent | d344ea3ee86ab95d9ebce7cc06dd939f9734a06a (diff) |
moved DLLHelper.h to public header files directory
Diffstat (limited to 'include')
-rw-r--r-- | include/DLLHelper.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/DLLHelper.h b/include/DLLHelper.h new file mode 100644 index 0000000..f56db0d --- /dev/null +++ b/include/DLLHelper.h @@ -0,0 +1,26 @@ +#pragma once + +#include <string> +#include <Windows.h> + +class DLLHelper +{ +public: + DLLHelper(); + ~DLLHelper(); + + bool Init(HANDLE targetPID, const char * fullDllPath); + bool VerifyHeader(); + bool InitTargetMemory(); + bool FixImports(); + +private: + HANDLE m_TargetPID = 0; + std::string m_DLLPath; + DWORD m_DLLSize = 0; + UINT8 *m_DLLPtr = nullptr; + IMAGE_DOS_HEADER *m_DOSHeader = nullptr; + IMAGE_NT_HEADERS *m_NTHeader = nullptr; + PVOID m_TargetBaseAddress = nullptr; +}; + |