WHvCreatePartition

Syntax

typedef VOID* WHV_PARTITION_HANDLE;

HRESULT
WINAPI
WHvCreatePartition(
    _Out_ WHV_PARTITION_HANDLE* Partition
    );

Parameters

Partition

Receives the partition handle to the newly created partition object. All operations on the partition are performed through this handle.

To delete a partition created by WHvCreatePartition, use the WHvDeletePartition function.   

Remarks

The WHvCreatePartition function creates a new partition object.

WHvCreatePartition only creates the partition object and does not yet create the actual partition in the hypervisor. After creation of the partition object, the partition object should be configured using WHvSetPartitionProperty. After the partition object is confgiured, the WHvSetupPartition function should be called to create the hypervisor partition.