You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
This is probably more question than issue.
I created in my project SpdStorageUnit and I can use it after format. I would like to format it myself (in C++) but I can't find any way how to find new disk or volume that was just created by WinSpd. I can enumerate volumes before storage unit is created and again after it's created - new one will be the one I am searching for. I am just looking for proper way using WinSpd API.
I found SpdIoctlGetDevicePath but it doesn't give me correct path, just prefix. I set ClassGuid to SPD_STORAGE_UNIT_PARAMS.Guid and DeviceName to nullptr.
Is there any way how to find \Device\Harddisk... for created Spd storage unit? Thanks.
The text was updated successfully, but these errors were encountered:
I solved this (for now) by searching for SPD_STORAGE_UNIT_PARAMS::ProductId in VDS_DISK_PROP::pwszFriendlyName. Then I enumerate all volumes and search for mine by disk number.
Hello.
This is probably more question than issue.
I created in my project SpdStorageUnit and I can use it after format. I would like to format it myself (in C++) but I can't find any way how to find new disk or volume that was just created by WinSpd. I can enumerate volumes before storage unit is created and again after it's created - new one will be the one I am searching for. I am just looking for proper way using WinSpd API.
I found SpdIoctlGetDevicePath but it doesn't give me correct path, just prefix. I set ClassGuid to SPD_STORAGE_UNIT_PARAMS.Guid and DeviceName to nullptr.
Is there any way how to find \Device\Harddisk... for created Spd storage unit? Thanks.
The text was updated successfully, but these errors were encountered: