UpdateDriverForPlugAndPlayDevices doesn't seem to behave as described

  • Thread starter Thread starter cfgardiner
  • Start date Start date
C

cfgardiner

Guest
Hi,

I am developing a device driver for a customer. At the moment we are releasing beta version to the end customers before we submit the driver to Microsoft.

However, since the end-customers are not necessarily tech-savvy, they get an MSI installer which should take care of 32-bit or 64-bit Windows 10 systems automatically. Therefore I am writing an driver installer/updater.

The MS doc says that DIFx is no longer supported since windows-10 version 1607 and that new installers should use newdev.h instead. The method UpdateDriverForPlugAndPlayDevices(A/W) is recommended. The docs Device Installations on 64-Bit Systems - Windows drivers say that the default installer should be a 32-bit application and if the return error code is ERROR_IN_WOW64 to then call the 64-bit version of the installer.

That's not what I am getting. If I run the 32-bit installer on a 64-bit Win-10 system I get the error code ERROR_NO_MORE_ITEMS which could also just mean that a more up-to-date driver version is already installed.

I would be grateful for any coments, suggestions, code examples.

Continue reading...
 
Back
Top