PspSetJobTimeLimitCallback

NTSTATUS __stdcall PspSetJobTimeLimitCallback(_EPROCESS *Process, _LARGE_INTEGER *UserTimeLimit){
  UINT64 UserTime; 

  LODWORD(UserTime) = 0;
  if( (Process->Flags2 & 2) == 0 )
  {
    PsQueryRuntimeProcess(Process, &UserTime);
    UserTimeLimit->QuadPart += (unsigned int)UserTime * (unsigned __int64)(unsigned int)KeMaximumIncrement;
  }
  return 0;
}

Referenced by:

No references.