Prev: Set processor core affinity to a thread
Next: Some architecture related questions in user programming
From: Re!zu on 26 Jan 2010 12:13 Hi, I'm playing with the new VHD APIs introduced with Windows 7 : http://msdn.microsoft.com/en-us/magazine/dd569754.aspx In this article, it is written : "ATTACH_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER (called SURFACE_VIRTUAL_DISK_FLAG_NO_DRIVE_LETTER in the beta) will prevent Windows from automatically assigning drive letters to any volumes present in the virtual disk. You are free then to mount any volumes programmatically or not at all, depending on your needs. The GetVirtualDiskPhysicalPath function can be used to identify the physical path where the virtual disk was attached." Could someone tell me which API I should use in order to mount a volume in the virtual disk ? I used the Disk Management utility to create a single volume in the VHD but I don't know which API to use once I've got the physical path of the virtual disk. Thanks. |