fix kernel_get_expotr_func ret par unsigned char
This commit is contained in:
@@ -57,11 +57,12 @@ namespace utils
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto kernel_get_expotr_func(wchar_t* func_name)-> uintptr_t
|
||||
auto kernel_get_expotr_func(wchar_t* func_name)-> unsigned char*
|
||||
{
|
||||
|
||||
UNICODE_STRING unicode_func_name{ 0 };
|
||||
RtlInitUnicodeString(&unicode_func_name, func_name);
|
||||
return (uintptr_t)MmGetSystemRoutineAddress(&unicode_func_name);
|
||||
return (unsigned char*)MmGetSystemRoutineAddress(&unicode_func_name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,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;
|
||||
auto kernel_get_expotr_func(wchar_t* func_name) -> unsigned char*;
|
||||
|
||||
auto get_beep_trampoline_ptr()->uintptr_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user