Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IOCTL_STORAGE_FIRMWARE_DOWNLOAD IOCTL (winioctl.h)

Windows applications can use this control code to download a firmware image to the target device, but not activate it. If the image to be downloaded is larger than the controller’s maximum data transfer size, this IOCTL will have to be called multiple times until the entire image is downloaded.

To perform this operation, call the DeviceIoControl function with the following parameters.

BOOL DeviceIoControl(
 (HANDLE) hDevice, // handle to device
 IOCTL_STORAGE_FIRMWARE_DOWNLOAD, // dwIoControlCode
 (LPDWORD) lpInBuffer, // input buffer
 (DWORD) nInBufferSize, // size of input buffer
 (LPDWORD) lpOutBuffer, // output buffer
 (DWORD) nOutBufferSize, // size of output buffer
 (LPDWORD) lpBytesReturned, // number of bytes returned
 (LPOVERLAPPED) lpOverlapped // OVERLAPPED structure
);

Requirements

Requirement Value
Minimum supported client Windows 10
Minimum supported server Windows Server 2016
Header winioctl.h (include Windows.h)

See also


Feedback

Was this page helpful?

Additional resources