| 208 | |
| 209 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 210 | NTSTATUS QueryInformationThread(HANDLE hThread, THREADINFOCLASS ThreadInformationClass, OUT PVOID ThreadInformation, ULONG ThreadInformationLength, OUT PULONG ReturnLength) |
| 211 | { |
| 212 | using _ZwQueryInformationThread = NTSTATUS (NTAPI*)(HANDLE hThread, THREADINFOCLASS ThreadInformationClass, OUT PVOID ThreadInformation, ULONG ThreadInformationLength, OUT PULONG ReturnLength); |
| 213 | |
| 214 | static auto _QueryInformationThread = static_cast<_ZwQueryInformationThread>(Importer::GetKernelProcAddress(L"ZwQueryInformationThread")); |
| 215 | if (_QueryInformationThread) |
| 216 | return _QueryInformationThread(hThread, ThreadInformationClass, ThreadInformation, ThreadInformationLength, ReturnLength); |
| 217 | |
| 218 | return STATUS_NOT_IMPLEMENTED; |
| 219 | } |
| 220 | |
| 221 | _IRQL_requires_max_(PASSIVE_LEVEL) |
| 222 | NTSTATUS SetInformationThread(HANDLE hThread, THREADINFOCLASS ThreadInformationClass, IN PVOID ThreadInformation, ULONG ThreadInformationLength) |
nothing calls this directly
no test coverage detected