A better way to read firmware

Hi All,

I have a working WiFi driver, which needs to download a firmware file to the device, during driver initialization phase.

In order to do that, during driver installation, the firmware file is copied under c:\Windows\System32\drivers\myfile.hex

However, I was thinking whether there is a better way to store the firmware file during installation and retrieve it during driver initialization. Is there an API to store and retrieve it from the DriversStore special driver folder?

A better way is to include the firmware to the driver binary as a static array.

This is a good one. Would there be another one that would allow me to keep the firmware as a file?

xxxxx@purelifi.com wrote:

This is a good one. Would there be another one that would allow me to keep the firmware as a file?

I’m not sure what you’re looking for. If you want it in a file, then
copy it to system32\drivers with your driver. The DriverStore is
volatile; there’s no guarantee it’s going to hang around.

Another practical alternative is to shove the firmware into a registry
key. That’s a little less “exposed” than a text file.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.