I'm attempting to remove an ejectable SSD from c++ code, but all examples I found are related on how to eject USD disks or CD rom. Not ssd.
Of course those examples works with usb but doesn't with SSD.
Up to now I can dismount and make it offline, but I can't eject. That is using DeviceIoControl I first open drive, lock it (FSCTL_LOCK_VOLUME), unmount
volume (FSCTL_DISMOUNT_VOLUME) and make offline (IOCTL_VOLUME_OFFLINE). It remains offline but its icon is still present and isn't removed.
Please can you suggest a place where I can find code or documentation regarding ?