MiDeletePartition

NTSTATUS __stdcall MiDeletePartition(PVOID P){
  UINT16 v1; 

  v1 = *(_WORD *)P;
  MiDrainCrossPartitionUsage((INT64)P);
  MiDeletePartitionResources((_MI_PARTITION *)P);
  MiFreePartitionId(v1);
  return(unsigned int)ExFreePoolWithTag(P, 0);
}

Referenced by:

PspTeardownPartition