1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.0-RC2

This commit is contained in:
UzixLS
2018-11-03 16:19:29 +03:00
parent d4e0420295
commit 339353cce8
299 changed files with 682 additions and 165 deletions

12
core/resolver.h Normal file → Executable file
View File

@ -47,6 +47,18 @@ struct IMTE_KEX : public IMTE
* 0 - not checked, 0xffff - not an overridden module */
};
/* Creates a stub that calls address specified in the constructor. */
class redir_stub
{
public:
redir_stub(unsigned long target) : c_eax(0xb8), v_eax(target), c_jmp(0xe0ff) {}
private:
unsigned char c_eax;
unsigned long v_eax;
unsigned short c_jmp;
};
#pragma pack(pop)
DWORD encode_address(DWORD addr, const ApiLibrary* apilib);