Vanara.PInvoke.VirtDisk
5.0.0
Prefix Reserved
dotnet add package Vanara.PInvoke.VirtDisk --version 5.0.0
NuGet\Install-Package Vanara.PInvoke.VirtDisk -Version 5.0.0
<PackageReference Include="Vanara.PInvoke.VirtDisk" Version="5.0.0" />
<PackageVersion Include="Vanara.PInvoke.VirtDisk" Version="5.0.0" />
<PackageReference Include="Vanara.PInvoke.VirtDisk" />
paket add Vanara.PInvoke.VirtDisk --version 5.0.0
#r "nuget: Vanara.PInvoke.VirtDisk, 5.0.0"
#:package Vanara.PInvoke.VirtDisk@5.0.0
#addin nuget:?package=Vanara.PInvoke.VirtDisk&version=5.0.0
#tool nuget:?package=Vanara.PInvoke.VirtDisk&version=5.0.0
![]()
Vanara.PInvoke.VirtDisk NuGet Package
PInvoke API (methods, structures and constants) imported from Windows VirtDisk.dll.
What is Vanara?
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 MyGet build. If you're still running into problems, file an issue.
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_PROGRESS VIRTUAL_STORAGE_TYPE OPEN_VIRTUAL_DISK_PARAMETERS VIRTUAL_DISK_HANDLE 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 |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- Microsoft.Win32.Registry (>= 5.0.0)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
.NETFramework 4.8
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Memory (>= 4.5.5)
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
.NETStandard 2.0
- Microsoft.Win32.Registry (>= 5.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Memory (>= 4.5.5)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
.NETStandard 2.1
- Microsoft.Win32.Registry (>= 5.0.0)
- System.ComponentModel.Annotations (>= 5.0.0)
- System.Memory (>= 4.5.5)
- System.Runtime.CompilerServices.Unsafe (>= 6.1.2)
- System.Security.AccessControl (>= 6.0.1)
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
net5.0
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
net6.0
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
net7.0
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
net8.0-windows7.0
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
-
net9.0-windows7.0
- Vanara.Core (>= 5.0.0)
- Vanara.PInvoke.Kernel32 (>= 5.0.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Vanara.PInvoke.VirtDisk:
| Package | Downloads |
|---|---|
|
Vanara.VirtualDisk
.NET classes to manage Windows Virtual Storage (VHD and VHDX) using P/Invoke functions from VirtDisk.dll. |
|
|
Vanara.Library
The full set of packages associated with the Vanara PInvoke Libraries. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0 | 347 | 1/12/2026 |
| 4.2.1 | 1,266 | 9/9/2025 |
| 4.2.0 | 309 | 8/25/2025 |
| 4.1.6 | 305 | 6/20/2025 |
| 4.1.5 | 292 | 6/20/2025 |
| 4.1.4 | 305 | 6/7/2025 |
| 4.1.3 | 375 | 4/24/2025 |
| 4.1.2 | 393 | 4/16/2025 |
| 4.1.1 | 500 | 3/7/2025 |
| 4.1.0 | 407 | 3/7/2025 |
| 4.0.6 | 318 | 2/24/2025 |
| 4.0.5 | 338 | 2/8/2025 |
| 4.0.4 | 816 | 9/13/2024 |
| 4.0.3 | 343 | 8/5/2024 |
| 4.0.2 | 395 | 6/24/2024 |
| 4.0.1 | 689 | 4/30/2024 |
| 4.0.0 | 355 | 3/29/2024 |
| 4.0.0-beta2 | 299 | 1/22/2024 |
| 4.0.0-beta | 250 | 11/20/2023 |
| 3.4.17 | 636 | 10/18/2023 |
Currently implements:
Functions
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
Structures
APPLY_SNAPSHOT_VHDSET_PARAMETERS APPLY_SNAPSHOT_VHDSET_PARAMETERS_Version1 ATTACH_VIRTUAL_DISK_PARAMETERS ATTACH_VIRTUAL_DISK_PARAMETERS_Version1 COMPACT_VIRTUAL_DISK_PARAMETERS COMPACT_VIRTUAL_DISK_PARAMETERS_Version1 CREATE_VIRTUAL_DISK_PARAMETERS CREATE_VIRTUAL_DISK_PARAMETERS_Version1 CREATE_VIRTUAL_DISK_PARAMETERS_Version2 CREATE_VIRTUAL_DISK_PARAMETERS_Version3 DELETE_SNAPSHOT_VHDSET_PARAMETERS DELETE_SNAPSHOT_VHDSET_PARAMETERS_Version1 EXPAND_VIRTUAL_DISK_PARAMETERS EXPAND_VIRTUAL_DISK_PARAMETERS_Version1 GET_VIRTUAL_DISK_INFO GET_VIRTUAL_DISK_INFO_ChangeTrackingState GET_VIRTUAL_DISK_INFO_ParentLocation GET_VIRTUAL_DISK_INFO_PhysicalDisk GET_VIRTUAL_DISK_INFO_Size MERGE_VIRTUAL_DISK_PARAMETERS MERGE_VIRTUAL_DISK_PARAMETERS_V1 MERGE_VIRTUAL_DISK_PARAMETERS_V2 MIRROR_VIRTUAL_DISK_PARAMETERS MIRROR_VIRTUAL_DISK_PARAMETERS_Version1 MODIFY_VHDSET_PARAMETERS MODIFY_VHDSET_PARAMETERS_Version1 MODIFY_VHDSET_PARAMETERS_Version1_SnapshotPath OPEN_VIRTUAL_DISK_PARAMETERS OPEN_VIRTUAL_DISK_PARAMETERS_Version1 OPEN_VIRTUAL_DISK_PARAMETERS_Version2 OPEN_VIRTUAL_DISK_PARAMETERS_Version3 QUERY_CHANGES_VIRTUAL_DISK_RANGE RAW_SCSI_VIRTUAL_DISK_PARAMETERS RAW_SCSI_VIRTUAL_DISK_PARAMETERS_Version1 RAW_SCSI_VIRTUAL_DISK_RESPONSE RAW_SCSI_VIRTUAL_DISK_RESPONSE_Version1 RESIZE_VIRTUAL_DISK_PARAMETERS RESIZE_VIRTUAL_DISK_PARAMETERS_Version1 SET_VIRTUAL_DISK_INFO SET_VIRTUAL_DISK_INFO_ParentLocator SET_VIRTUAL_DISK_INFO_ParentPathWithDepthInfo STORAGE_DEPENDENCY_INFO STORAGE_DEPENDENCY_INFO_TYPE_1 STORAGE_DEPENDENCY_INFO_TYPE_2 TAKE_SNAPSHOT_VHDSET_PARAMETERS TAKE_SNAPSHOT_VHDSET_PARAMETERS_Version1 VIRTUAL_DISK_HANDLE VIRTUAL_DISK_PROGRESS VIRTUAL_STORAGE_TYPE