[NTDLL_APITEST] Adjust ThreadHideFromDebugger support for NtQueryInformationThread() probing tests (#8486)

This commit is contained in:
Hermès Bélusca-Maïto
2025-11-29 18:50:22 +01:00
parent 26c126153f
commit f4d0d53445

View File

@@ -281,13 +281,20 @@ QuerySetThreadValidator(
case ThreadZeroTlsCell:
case ThreadIdealProcessor:
case ThreadSetTlsArrayAddress:
case ThreadHideFromDebugger:
case ThreadSwitchLegacyState:
{
SpecialStatus = STATUS_INVALID_INFO_CLASS;
break;
}
/* This class supports queries only on Vista and above */
case ThreadHideFromDebugger:
{
if (GetNTVersion() < _WIN32_WINNT_VISTA)
SpecialStatus = STATUS_INVALID_INFO_CLASS;
break;
}
/* These classes don't exist in Server 2003 SP2 */
case ThreadEventPair_Reusable:
case ThreadLastSystemCall:
@@ -329,7 +336,7 @@ QuerySetThreadValidator(
/*
* This class doesn't take a strict type for size length.
* The function happily succeds on an information length
* The function happily succeeds on an information length
* mismatch scenario with STATUS_SUCCESS.
*/
case ThreadHideFromDebugger: