PspIsSetJobIoAttribution

UINT8 __stdcall PspIsSetJobIoAttribution(_EJOB *Job, UINT8 SkipAncestorsCheck, UINT8 SkipChildrenCheck){
  _EJOB *ParentJob; 
  UINT8 v4; 
  ParentJob = Job->ParentJob;
  v4 = 0;
  while( ParentJob )
  {
    if( ParentJob->DiskIoAttributionRefCount )
      return 1;
    ParentJob = ParentJob->ParentJob;
  }
  if( !SkipChildrenCheck
    && (int)PspEnumJobsAndProcessesInJobHierarchy(
              Job,
              (__int64(__fastcall *)(__int64, __int64))PspIsSetJobIoAttributionJobPreCallback,
              0i64,
              0i64,
              (__int64)Job,
              5) < 0 )
  {
    return 1;
  }
  return v4;
}

Referenced by:

PspAssignProcessToJob
PspSetJobIoAttribution