共用方式為


Virtual Disk Functions

The following functions are used in Virtual Disks:

In this section

Topic Description

ApplySnapshotVhdSet

Applies a snapshot of the current virtual disk for VHD Set files.

AddVirtualDiskParent

Attaches a parent to a virtual disk opened with the OPEN_VIRTUAL_DISK_FLAG_CUSTOM_DIFF_CHAIN flag.

AttachVirtualDisk

Attaches a virtual hard disk (VHD) or CD or DVD image file (ISO) by locating an appropriate VHD provider to accomplish the attachment.

BreakMirrorVirtualDisk

Breaks a previously initiated mirror operation and sets the mirror to be the active virtual disk.

CompactVirtualDisk

Reduces the size of a virtual hard disk (VHD) backing store file.

CreateVirtualDisk

Creates a virtual hard disk (VHD) image file, either using default parameters or using an existing virtual disk or physical disk.

DeleteSnapshotVhdSet

Deletes a snapshot from a VHD Set file.

DeleteVirtualDiskMetadata

Deletes metadata from a virtual disk.

DetachVirtualDisk

Detaches a virtual hard disk (VHD) or CD or DVD image file (ISO) by locating an appropriate virtual disk provider to accomplish the operation.

EnumerateVirtualDiskMetadata

Enumerates the metadata associated with a virtual disk.

ExpandVirtualDisk

Increases the size of a fixed or dynamically expandable virtual hard disk (VHD).

GetStorageDependencyInformation

Returns the relationships between virtual hard disks (VHDs) or CD or DVD image file (ISO) or the volumes contained within those disks and their parent disk or volume.

GetVirtualDiskInformation

Retrieves information about a VHD.

GetVirtualDiskMetadata

Retrieves the specified metadata from the virtual disk.

GetVirtualDiskOperationProgress

Checks the progress of an asynchronous virtual hard disk (VHD) operation.

GetVirtualDiskPhysicalPath

Retrieves the path to the physical device object that contains a virtual hard disk (VHD) or CD or DVD image file (ISO).

MergeVirtualDisk

Merges a child virtual hard disk (VHD) in a differencing chain with one or more parent virtual disks in the chain.

MirrorVirtualDisk

Initiates a mirror operation for a virtual disk.

ModifyVhdSet

Modifies the internal contents of a virtual disk file. Can be used to set the active leaf, or to fix up snapshot entries.

OpenVirtualDisk

Opens a virtual hard disk (VHD) or CD or DVD image file (ISO) for use.

QueryChangesVirtualDisk

Retrieves information about changes to the specified areas of a virtual hard disk (VHD) that are tracked by resilient change tracking (RCT).

RawSCSIVirtualDisk

Issues an embedded SCSI request directly to a virtual hard disk.

ResizeVirtualDisk

Resizes a virtual disk.

SetVirtualDiskInformation

Sets information about a virtual hard disk (VHD).

SetVirtualDiskMetadata

Sets a metadata item for a virtual disk.

TakeSnapshotVhdSet

Creates a snapshot of the current virtual disk for VHD Set files.