This is the 3rd unit based on Joachim Metz work.
This time I quickly coded a delphi wrapper for libvhdi.
As previous ones : create the object, open the file, get the size, read and/or write, close…
The delphi unit is here : libvhdi .
Another worthy tool to add to your toolset.
Disk2vhd is a utility that creates VHD (Virtual Hard Disk – Microsoft’s Virtual Machine disk format) versions of physical disks for use in Microsoft Virtual PC or Microsoft Hyper-V virtual machines (VMs). The difference between Disk2vhd and other physical-to-virtual tools is that you can run Disk2vhd on a system that’s online. Disk2vhd uses Windows’ Volume Snapshot capability, introduced in Windows XP, to create consistent point-in-time snapshots of the volumes you want to include in a conversion.