mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 08:36:16 +00:00
Support ProcessPriorityClass in NtQueryInformationProcess
This commit is contained in:
@@ -1118,4 +1118,10 @@ struct EMU_SYSTEM_LOGICAL_PROCESSOR_INFORMATION
|
||||
} DUMMYUNIONNAME;
|
||||
};
|
||||
|
||||
struct PROCESS_PRIORITY_CLASS
|
||||
{
|
||||
BOOLEAN Foreground;
|
||||
UCHAR PriorityClass;
|
||||
};
|
||||
|
||||
// NOLINTEND(modernize-use-using,cppcoreguidelines-avoid-c-arrays,hicpp-avoid-c-arrays,modernize-avoid-c-arrays)
|
||||
|
||||
@@ -86,6 +86,13 @@ namespace syscalls
|
||||
b = FALSE; //
|
||||
});
|
||||
|
||||
case ProcessPriorityClass:
|
||||
return handle_query<PROCESS_PRIORITY_CLASS>(c.emu, process_information, process_information_length, return_length,
|
||||
[](PROCESS_PRIORITY_CLASS& c) {
|
||||
c.Foreground = 1;
|
||||
c.PriorityClass = 32; // Normal
|
||||
});
|
||||
|
||||
case ProcessBasicInformation:
|
||||
return handle_query<PROCESS_BASIC_INFORMATION64>(c.emu, process_information, process_information_length, return_length,
|
||||
[&](PROCESS_BASIC_INFORMATION64& basic_info) {
|
||||
|
||||
Reference in New Issue
Block a user