KeQueryPriorityThread

NTSTATUS __stdcall KeQueryPriorityThread(_ETHREAD *Thread){
  if( *((__int64 **)Thread + 68) == KiInitialProcess )
    return 1;
  else
    return *((char *)Thread + 195);
}

Referenced by:

LZNT1DecompressChunkNewThread
MiInSwapStore
MiModifiedPageWriter
MiSetIdealProcessorThread
PfSnPrefetchScenario
PfSnPrefetchSections
PfSnPrefetchSectionsCleanup
PoNotifyMediaBuffering
SMKM_STORE::SmStWorkItemGet
SMKM_STORE::SmStWorkItemQueue
SMKM_STORE_MGR::SmIoCtxQueueWork
SMKM_STORE_MGR::SmUpdateMemoryConditions
ViPendingQueuePassiveLevelCompletion