MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / QueryInformationThread

Function QueryInformationThread

Source/Client/NM_Sys/API/ProcessesUtils.cpp:210–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

GetKernelProcAddressFunction · 0.85

Tested by

no test coverage detected