MiLockHotPatchUndoPages
NTSTATUS __stdcall MiLockHotPatchUndoPages(INT64 *a1, INT64 a2){
_MMSUPPORT_INSTANCE *AnyMultiplexedVm;
unsigned int i;
CHAR v6;
NTSTATUS result;
UINT64 v8;
INT64 v9;
LODWORD(v9) = 0;
LODWORD(v8) = 0;
AnyMultiplexedVm = MiGetAnyMultiplexedVm(MiWorkingSetTypeSystemViews, (VOID *)a2);
for( i = 0; RtlDetermineHotPatchUndoExtent(a2, 1i64, i, &v9, &v8); ++i )
{
result = MiLockDriverPageRange(a1, (INT64)AnyMultiplexedVm, (unsigned int)v9, (unsigned int)v8, v6, 0i64);
if( result < 0 )
return result;
}
return 0;
}Referenced by:
MiPrepareDriverForHotPatch
MiUnapplyDriverHotPatch