MiNumberWsSwapPagefiles
NTSTATUS __stdcall MiNumberWsSwapPagefiles(_MI_PARTITION *Partition){
volatile unsigned int NumberOfPagingFiles;
NTSTATUS v2;
_MMPAGING_FILE **PagingFile;
__int64 v4;
_MMPAGING_FILE *v5;
int v6;
NumberOfPagingFiles = Partition->Vp.NumberOfPagingFiles;
v2 = 0;
if( NumberOfPagingFiles )
{
PagingFile = Partition->Vp.PagingFile;
v4 = NumberOfPagingFiles;
do
{
v5 = *PagingFile;
v6 = v2 + 1;
++PagingFile;
if( (v5->_bf_cc & 0x10) == 0 )
v6 = v2;
v2 = v6;
--v4;
}
while( v4 );
}
return v2;
}Referenced by:
MiCheckTrimUnusedPageFileRegions
MiContractWsSwapPageFile
MiInsertPageFileInList