MiIsPteInStore

NTSTATUS __stdcall MiIsPteInStore(_MI_PARTITION *Partition, _MMPTE PteContents){
  NTSTATUS result; 

  result = 1;
  if( (PteContents.u.Long & 4) == 0 || LOWORD(PteContents.u.Long) >> 12 != Partition->Store.VirtualPageFileNumber )
    return 0;
  return result;
}

Referenced by:

MiCheckCommitReleaseFromVad
MiComputeFaultCluster
MiFinishHardFault
MiMakeOutswappedPageResident
MiPfPutPagesInTransition
MiResolvePageFileFault
MiResolveProtoCombine
MiUpdatePfnPriority
MiUpdatePfnPriorityByPte