MmSetMemoryPriorityProcess

VOID __stdcall MmSetMemoryPriorityProcess(_EPROCESS *Process, UINT8 MemoryPriority){
  _KLOCK_QUEUE_HANDLE LockHandle; 

  memset(&LockHandle, 0, sizeof(LockHandle));
  KeAcquireInStackQueuedSpinLock((PKSPIN_LOCK)&stru_140C4DB30 + 522, &LockHandle);
  Process->Vm.Instance.Flags.MemoryPriority = MemoryPriority;
  KeReleaseInStackQueuedSpinLockFromDpcLevel(&LockHandle);
  __writecr8(LockHandle.OldIrql);
}

Referenced by:

NtSetInformationProcess
PspComputeQuantumAndPriority