S
Stay hungry_Stay Foolish
Guest
Hi,
I am trying to open VHDSET file using Virtual Disk management API OpenVirtualDisk API call. But it fails without any proper error. OpenVirtualDisk API returns 3227320074
Below is my code,
virtStorageType.DeviceId = VIRTUAL_STORAGE_TYPE_DEVICE_VHDSET;
virtStorageType.VendorId = VIRTUAL_STORAGE_TYPE_VENDOR_UNKNOWN;
memset(&openParameters, 0, sizeof(openParameters));
openParameters.Version = OPEN_VIRTUAL_DISK_VERSION_2;
openParameters.Version2.GetInfoOnly = bForInfo;
openParameters.Version2.ReadOnly = pbIsReadOnly;
dwOpenStatus = OpenVirtualDisk(
&virtStorageType,
pwstrHDPath.c_str(),
VIRTUAL_DISK_ACCESS_NONE,
OPEN_VIRTUAL_DISK_FLAG_NONE,
&openParameters,
&m_VDiskHandle);
Thanks
Continue reading...
I am trying to open VHDSET file using Virtual Disk management API OpenVirtualDisk API call. But it fails without any proper error. OpenVirtualDisk API returns 3227320074
Below is my code,
virtStorageType.DeviceId = VIRTUAL_STORAGE_TYPE_DEVICE_VHDSET;
virtStorageType.VendorId = VIRTUAL_STORAGE_TYPE_VENDOR_UNKNOWN;
memset(&openParameters, 0, sizeof(openParameters));
openParameters.Version = OPEN_VIRTUAL_DISK_VERSION_2;
openParameters.Version2.GetInfoOnly = bForInfo;
openParameters.Version2.ReadOnly = pbIsReadOnly;
dwOpenStatus = OpenVirtualDisk(
&virtStorageType,
pwstrHDPath.c_str(),
VIRTUAL_DISK_ACCESS_NONE,
OPEN_VIRTUAL_DISK_FLAG_NONE,
&openParameters,
&m_VDiskHandle);
Thanks
Continue reading...