diff --git a/Anti-Cheat_Driver/utils.cpp b/Anti-Cheat_Driver/utils.cpp index 5131e83..051f087 100644 --- a/Anti-Cheat_Driver/utils.cpp +++ b/Anti-Cheat_Driver/utils.cpp @@ -56,6 +56,13 @@ namespace utils return 0; } + auto kernel_get_expotr_func(wchar_t* func_name)-> uintptr_t + { + UNICODE_STRING unicode_func_name{ 0 }; + RtlInitUnicodeString(&unicode_func_name, func_name); + return (uintptr_t)MmGetSystemRoutineAddress(&unicode_func_name); + } + diff --git a/Anti-Cheat_Driver/utils.h b/Anti-Cheat_Driver/utils.h index 8298204..4c68c48 100644 --- a/Anti-Cheat_Driver/utils.h +++ b/Anti-Cheat_Driver/utils.h @@ -7,8 +7,7 @@ namespace utils auto FindSectionsCode(unsigned long long Base, const char* pattern, const char* mask, const char* name) -> ULONG64; - - + auto kernel_get_expotr_func(wchar_t* func_name) -> uintptr_t;