[NTOSKRNL] Implement ThreadHideFromDebugger in NtSetInformationThread()

This commit is contained in:
Pierre Schweitzer 2018-02-24 22:06:18 +01:00
parent 2ffc684699
commit 62facb7a49
No known key found for this signature in database
GPG Key ID: 7545556C3D585B0B

View File

@ -2420,6 +2420,19 @@ NtSetInformationThread(IN HANDLE ThreadHandle,
}
break;
case ThreadHideFromDebugger:
/* Check buffer length */
if (ThreadInformationLength != 0)
{
Status = STATUS_INFO_LENGTH_MISMATCH;
break;
}
/* Set the flag */
PspSetCrossThreadFlag(Thread, CT_HIDE_FROM_DEBUGGER_BIT);
break;
default:
/* We don't implement it yet */
DPRINT1("Not implemented: %d\n", ThreadInformationClass);