PsSetSystemPagePriorityThread
UINT64 __stdcall PsSetSystemPagePriorityThread(_ETHREAD *Thread, UINT64 SystemPagePriority){
unsigned int bf_1;
unsigned int SameThreadApcFlags;
int v4;
unsigned int v5;
unsigned int v6;
--Thread->Tcb.SpecialApcDisable;
bf_1 = (unsigned __int8)Thread->_bf_1;
SameThreadApcFlags = Thread->SameThreadApcFlags;
v4 = (_DWORD)SystemPagePriority << 9;
if( (bf_1 & 1) != 0 )
{
v5 = (bf_1 >> 1) & 7;
v6 = SameThreadApcFlags & 0xFFFFF1FF;
}
else
{
v5 = -1;
v6 = SameThreadApcFlags | 0x100;
}
Thread->SameThreadApcFlags = v4 | v6;
KiLeaveGuardedRegionUnsafe((__int64)Thread);
return v5;
}Referenced by:
MiRelocateImage
MiValidateSectionCreate
SmSetThreadSystemPagePriority