ExylonFiber
Well-Known Member
- Joined
- Apr 25, 2020
I am trying to build a list of storage devices for this particular section of code found on MSDN page:
In the DeviceGetFirmwareInfo function, there is a PDEVICE_LIST variable I have yet to satisfy.
I simply want to enumerate storage devices available on the machine and iterate through them all so I can get the information on all the available storage devices
I have searched google for hours and have not found one solution.
Any help would be very much appreciated!
Upgrading Firmware for an NVMe Device - Windows drivers
Updates to the firmware on an NVMe storage device are issued to the miniport driver for that device.
docs.microsoft.com
Code:
typedef struct _DEVICE_LIST {
HANDLE Handle;
STORAGE_ADAPTER_DESCRIPTOR AdapterDescriptor;
} DEVICE_LIST, * PDEVICE_LIST;
BOOL
DeviceGetFirmwareInfo(
_In_ PDEVICE_LIST DeviceList,
_In_ DWORD Index,
_Inout_ PUCHAR Buffer,
_In_ DWORD BufferLength,
_In_ BOOLEAN DisplayResult
)
In the DeviceGetFirmwareInfo function, there is a PDEVICE_LIST variable I have yet to satisfy.
I simply want to enumerate storage devices available on the machine and iterate through them all so I can get the information on all the available storage devices
I have searched google for hours and have not found one solution.
Any help would be very much appreciated!