VmDeleteMemoryRange
NTSTATUS __stdcall VmDeleteMemoryRange(
UINT64 GuestPhysicalAddress,
VOID *SystemVirtualAddress,
UINT64 SizeInPages,
UINT64 PartitionId){
unsigned __int64 v5;
unsigned __int64 v6;
INT64 a5;
NTSTATUS result;
INT64 *VmContext;
if( VmpValidateMemoryRangeParameters(GuestPhysicalAddress, (UINT64)SystemVirtualAddress, SizeInPages, PartitionId) )
return -1073741811;
VmContext = (INT64 *)KeGetCurrentThread()->ApcState.Process->VmContext;
if( !VmContext )
return -1073741688;
result = VmpRemoveMemoryRange(VmContext, v5 >> 12, (_RTL_BALANCED_NODE *)(v6 >> 12), SizeInPages, a5);
if( result >= 0 )
return 0;
return result;
}Referenced by:
No references.