You use the IFileSystemImage::get_ImportedVolumeName method to obtain the volume name from an imported file system in a Windows 7 or Windows Server 2008 environment. However, this method may return a string that contains garbage data in front of the volume name.
This problem occurs because of a defect in the Imapi2fs.dll file.
There is currently no workaround for this problem.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Windows 7 Enterprise, Windows 7 Home Basic, Windows 7 Home Premium, Windows 7 Professional, Windows 7 Starter, Windows 7 Ultimate, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 for Itanium-Based Systems, Windows Server 2008 R2 Foundation, Windows Server 2008 R2 Standard, Windows Web Server 2008 R2