[NTOS:PS] On x64 don't fail in NtSetInformationProcess with ProcessUserModeIOPL information class, instead just don't do anything.

For NT6+ appcompat setting return STATUS_NOT_IMPLEMENTED
This commit is contained in:
Timo Kreuzer 2018-02-11 11:26:51 +01:00
parent 26484eea9f
commit cb22d5f697
3 changed files with 31 additions and 0 deletions

View file

@ -493,3 +493,20 @@ RtlGetCurrentProcessorNumber(VOID)
/* Forward to kernel */
return NtGetCurrentProcessorNumber();
}
_IRQL_requires_max_(APC_LEVEL)
ULONG
NTAPI
RtlRosGetAppcompatVersion(VOID)
{
/* Get the current PEB */
PPEB Peb = RtlGetCurrentPeb();
if (Peb == NULL)
{
/* Default to Server 2003 */
return _WIN32_WINNT_WS03;
}
/* Calculate OS version from PEB fields */
return (Peb->OSMajorVersion << 8) | Peb->OSMinorVersion;
}