Skip to content

DeviceName for created storage unit #11

@martin-kudlicka

Description

@martin-kudlicka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions