79452245

Date: 2025-02-19 17:25:45
Score: 2
Natty:
Report link

I know this is old, but since I just ran into this, and in case anyone else runs across this, the answer is because the storageType.DeviceID is set to VIRTUAL_STORAGE_TYPE_DEVICE_VHD.

Per https://learn.microsoft.com/en-us/windows/win32/api/virtdisk/ns-virtdisk-virtual_storage_type:

add: public const int VIRTUAL_STORAGE_TYPE_DEVICE_ISO = 1;

change to: storageType.DeviceID = VIRTUAL_STORAGE_TYPE_DEVICE_ISO;

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Chris G