mirror of
https://github.com/JKornev/hidden
synced 2024-06-16 03:58:04 +00:00
Added Wow64 redirection support
This commit is contained in:
parent
6b0777c4de
commit
aed101fa17
@ -842,6 +842,19 @@ void do_psmon_excl_tests(HidContext context)
|
||||
DeleteFileW(file_path.c_str());
|
||||
}
|
||||
|
||||
void disable_wow64_redirection()
|
||||
{
|
||||
#ifndef _AMD64
|
||||
BOOL wow64 = FALSE;
|
||||
PVOID value;
|
||||
|
||||
IsWow64Process(GetCurrentProcess(), &wow64);
|
||||
|
||||
if (wow64)
|
||||
Wow64DisableWow64FsRedirection(&value);
|
||||
#endif
|
||||
}
|
||||
|
||||
int wmain(int argc, wchar_t* argv[])
|
||||
{
|
||||
HidContext hid_context;
|
||||
@ -856,6 +869,8 @@ int wmain(int argc, wchar_t* argv[])
|
||||
return 1;
|
||||
}
|
||||
|
||||
disable_wow64_redirection();
|
||||
|
||||
do_fsmon_tests(hid_context);
|
||||
do_regmon_tests(hid_context);
|
||||
do_psmon_prot_tests(hid_context);
|
||||
|
Loading…
Reference in New Issue
Block a user