Partager via


CreateVhdWTDisk method of the WT_Disk class

Create a new VHDX-based iSCSI virtual disk.

Syntax

WT_Disk CreateVhdWTDisk(
  [in] string  DevicePath,
  [in] uint16  VhdType,
  [in] uint64  MaxInternalSize,
  [in] uint32  BlockSize,
  [in] uint32  LogicalSectorSize,
  [in] uint32  PhysicalSectorSize,
  [in] string  Description,
  [in] boolean ClearData,
  [in] string  ParentPath
);

Parameters

DevicePath [in]

Full path to VHDX file.

VhdType [in]

VHD type.

Fixed (2)

Dynamic (3)

Differencing (4)

MaxInternalSize [in]

The maximum size of the virtual hard disk as viewable by an initiator, in bytes. The specified size is rounded up based on the larger value of either logical or physical sector size.

BlockSize [in]

The block size in bytes used by the VHDX.

LogicalSectorSize [in]

The logical sector size in bytes used by the VHDX.

PhysicalSectorSize [in]

The physical sector size in bytes used by the VHDX.

Description [in]

iSCSI disk description.

ClearData [in]

Whether to clear data upon fixed VHDX creation

ParentPath [in]

Full path to parent VHD file

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Wmi
MOF
Wmiwtprovider.mof
DLL
WtWmiProv.dll

See also

WT_Disk