![Vanara](https://raw.githubusercontent.com/dahall/Vanara/master/docs/icons/VanaraHeading.png)
### **Vanara.PInvoke.VirtDisk NuGet Package**
[![Version](https://img.shields.io/nuget/v/Vanara.PInvoke.VirtDisk?label=NuGet&style=flat-square)](https://github.com/dahall/Vanara/releases)
[![Build status](https://img.shields.io/appveyor/build/dahall/vanara?label=AppVeyor%20build&style=flat-square)](https://ci.appveyor.com/project/dahall/vanara)

PInvoke API (methods, structures and constants) imported from Windows VirtDisk.dll.

### **What is Vanara?**

[Vanara](https://github.com/dahall/Vanara) is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.

### **Issues?**

First check if it's already fixed by trying the [AppVeyor build](https://ci.appveyor.com/nuget/vanara-prerelease).
If you're still running into problems, file an [issue](https://github.com/dahall/Vanara/issues).

### **Included in Vanara.PInvoke.VirtDisk**

Functions | Enumerations | Structures
--- | --- | ---
AddVirtualDiskParent ApplySnapshotVhdSet AttachVirtualDisk BreakMirrorVirtualDisk CompactVirtualDisk CreateVirtualDisk DeleteSnapshotVhdSet DeleteVirtualDiskMetadata DetachVirtualDisk EnumerateVirtualDiskMetadata ExpandVirtualDisk GetAllAttachedVirtualDiskPhysicalPaths GetStorageDependencyInformation GetVirtualDiskInformation GetVirtualDiskMetadata GetVirtualDiskOperationProgress GetVirtualDiskPhysicalPath MergeVirtualDisk MirrorVirtualDisk ModifyVhdSet OpenVirtualDisk QueryChangesVirtualDisk RawSCSIVirtualDisk ResizeVirtualDisk SetVirtualDiskInformation SetVirtualDiskMetadata TakeSnapshotVhdSet                        | APPLY_SNAPSHOT_VHDSET_FLAG APPLY_SNAPSHOT_VHDSET_VERSION ATTACH_VIRTUAL_DISK_FLAG ATTACH_VIRTUAL_DISK_VERSION COMPACT_VIRTUAL_DISK_FLAG COMPACT_VIRTUAL_DISK_VERSION CREATE_VIRTUAL_DISK_FLAG CREATE_VIRTUAL_DISK_VERSION DELETE_SNAPSHOT_VHDSET_FLAG DELETE_SNAPSHOT_VHDSET_VERSION DEPENDENT_DISK_FLAG DETACH_VIRTUAL_DISK_FLAG EXPAND_VIRTUAL_DISK_FLAG EXPAND_VIRTUAL_DISK_VERSION GET_STORAGE_DEPENDENCY_FLAG GET_VIRTUAL_DISK_INFO_VERSION MERGE_VIRTUAL_DISK_FLAG MERGE_VIRTUAL_DISK_VERSION MIRROR_VIRTUAL_DISK_FLAG MIRROR_VIRTUAL_DISK_VERSION MODIFY_VHDSET_FLAG MODIFY_VHDSET_VERSION OPEN_VIRTUAL_DISK_FLAG OPEN_VIRTUAL_DISK_VERSION QUERY_CHANGES_VIRTUAL_DISK_FLAG RAW_SCSI_VIRTUAL_DISK_FLAG RAW_SCSI_VIRTUAL_DISK_VERSION RESIZE_VIRTUAL_DISK_FLAG RESIZE_VIRTUAL_DISK_VERSION SET_VIRTUAL_DISK_INFO_VERSION STORAGE_DEPENDENCY_INFO_VERSION TAKE_SNAPSHOT_VHDSET_FLAG TAKE_SNAPSHOT_VHDSET_VERSION VIRTUAL_DISK_ACCESS_MASK VIRTUAL_DISK_INFO_PROVIDER_SUBTYPE VIRTUAL_STORAGE_TYPE_DEVICE_TYPE               | APPLY_SNAPSHOT_VHDSET_PARAMETERS ATTACH_VIRTUAL_DISK_PARAMETERS COMPACT_VIRTUAL_DISK_PARAMETERS CREATE_VIRTUAL_DISK_PARAMETERS DELETE_SNAPSHOT_VHDSET_PARAMETERS EXPAND_VIRTUAL_DISK_PARAMETERS GET_VIRTUAL_DISK_INFO MERGE_VIRTUAL_DISK_PARAMETERS MIRROR_VIRTUAL_DISK_PARAMETERS MODIFY_VHDSET_PARAMETERS QUERY_CHANGES_VIRTUAL_DISK_RANGE RAW_SCSI_VIRTUAL_DISK_PARAMETERS RAW_SCSI_VIRTUAL_DISK_RESPONSE RESIZE_VIRTUAL_DISK_PARAMETERS SET_VIRTUAL_DISK_INFO STORAGE_DEPENDENCY_INFO STORAGE_DEPENDENCY_INFO_TYPE_1 STORAGE_DEPENDENCY_INFO_TYPE_2 TAKE_SNAPSHOT_VHDSET_PARAMETERS VIRTUAL_DISK_HANDLE VIRTUAL_DISK_PROGRESS VIRTUAL_STORAGE_TYPE OPEN_VIRTUAL_DISK_PARAMETERS APPLY_SNAPSHOT_VHDSET_PARAMETERS_Version1 ATTACH_VIRTUAL_DISK_PARAMETERS_Version1 COMPACT_VIRTUAL_DISK_PARAMETERS_Version1 CREATE_VIRTUAL_DISK_PARAMETERS_Version1 CREATE_VIRTUAL_DISK_PARAMETERS_Version2 CREATE_VIRTUAL_DISK_PARAMETERS_Version3 DELETE_SNAPSHOT_VHDSET_PARAMETERS_Version1 EXPAND_VIRTUAL_DISK_PARAMETERS_Version1 GET_VIRTUAL_DISK_INFO_ChangeTrackingState GET_VIRTUAL_DISK_INFO_ParentLocation GET_VIRTUAL_DISK_INFO_PhysicalDisk GET_VIRTUAL_DISK_INFO_Size MERGE_VIRTUAL_DISK_PARAMETERS_V1 MERGE_VIRTUAL_DISK_PARAMETERS_V2 MIRROR_VIRTUAL_DISK_PARAMETERS_Version1 MODIFY_VHDSET_PARAMETERS_Version1 MODIFY_VHDSET_PARAMETERS_Version1_SnapshotPath RAW_SCSI_VIRTUAL_DISK_PARAMETERS_Version1 RAW_SCSI_VIRTUAL_DISK_RESPONSE_Version1 RESIZE_VIRTUAL_DISK_PARAMETERS_Version1 SET_VIRTUAL_DISK_INFO_ParentLocator SET_VIRTUAL_DISK_INFO_ParentPathWithDepthInfo TAKE_SNAPSHOT_VHDSET_PARAMETERS_Version1 OPEN_VIRTUAL_DISK_PARAMETERS_Version1 OPEN_VIRTUAL_DISK_PARAMETERS_Version2 OPEN_VIRTUAL_DISK_PARAMETERS_Version3 
