general enhancements

This commit is contained in:
vxunderground
2022-09-11 22:59:40 -05:00
parent e26512ae01
commit e18bbca6ec
9 changed files with 36 additions and 18 deletions
@@ -174,7 +174,7 @@ DWORD CreateProcessViaNtCreateUserProcessA(PCHAR BinaryPath)
CreateInfo.Size = sizeof(CreateInfo);
CreateInfo.State = PsCreateInitialState;
hModule = GetModuleHandleExW(L"ntdll.dll");
hModule = GetModuleHandleEx2W(L"ntdll.dll");
if (hModule == NULL)
return GetLastErrorEx();
@@ -268,7 +268,7 @@ DWORD CreateProcessViaNtCreateUserProcessW(PWCHAR BinaryPath)
CreateInfo.Size = sizeof(CreateInfo);
CreateInfo.State = PsCreateInitialState;
hModule = GetModuleHandleExW(L"ntdll.dll");
hModule = GetModuleHandleEx2W(L"ntdll.dll");
if (hModule == NULL)
return GetLastErrorEx();