Progress with kernelbase initialization

This commit is contained in:
momo5502
2024-08-31 19:43:27 +02:00
parent 2d23abc9e5
commit d0e79f51bd
2 changed files with 50 additions and 1 deletions

View File

@@ -282,7 +282,7 @@ namespace
context.process_params.access([&](RTL_USER_PROCESS_PARAMETERS& proc_params)
{
proc_params.Length = sizeof(proc_params);
proc_params.Flags = 0x6001;
proc_params.Flags = 0x6001 | 0x80000000;
gs.make_unicode_string(proc_params.CurrentDirectory.DosPath, L"C:\\Users\\mauri\\Desktop");
gs.make_unicode_string(proc_params.ImagePathName, L"C:\\Users\\mauri\\Desktop\\ConsoleApplication6.exe");
gs.make_unicode_string(proc_params.CommandLine, L"C:\\Users\\mauri\\Desktop\\ConsoleApplication6.exe");
@@ -575,6 +575,7 @@ namespace
(void)entry1;
(void)entry2;
syscall_dispatcher dispatcher{context.ntdll.exports};
emu->hook_instruction(x64_hookable_instructions::syscall, [&]