2OOO, 19 December
NTSYSAPI NTSTATUS NTAPINtQueryInformationThread(
IN HANDLE ThreadHandle, IN THREAD_INFORMATION_CLASS ThreadInformationClass, OUT PVOID ThreadInformation, IN ULONG ThreadInformationLength, OUT PULONG ReturnLength OPTIONAL );
ThreadHandle
Handle to Thread Object opened with THREAD_QUERY_INFORMATION access.ThreadInformationClass
Information class defined in THREAD_INFORMATION_CLASS enumerated type.ThreadInformation
Caller's allocated buffer for results.ThreadInformationLength
Length of buffer, in bytes.ReturnLength
Optional pointer to required buffer length.
See THREAD_INFORMATION_CLASS for more information.