DevCon UpdateDriverForPlugAndPlayDevicesW API logs Error in event viewer even on success.

  • Thread starter Thread starter Saurabh Singh Rathour
  • Start date Start date
S

Saurabh Singh Rathour

Guest
Hi, I have recently noticed that if we use devcon.exe (C:\Program Files (x86)\Windows Kits\10\Tools\10.0.22621.0\x64) to install a kernel mode driver then though installation is successful and driver is in running state but still it logs an error event in event viewer with following details.On debug I've found that as soon as below API gets called we see error entry in event viewer. Even though API returns success.if(!UpdateDriverForPlugAndPlayDevicesW(NULL, hwid.c_str(), infpath, flags, &reboot)) {{}I have checked devcon install with windows sample driver as well,

Continue reading...
 
Back
Top