Share via

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

Anonymous
2024-06-24T04:49:54+00:00

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, and seeing same problem.

https://github.com/microsoft/Windows-driver-samples/tree/main/general/echo/kmdf

Note: Issue is not observed in windows 10 OS. it only appears for windows11

Is this a known issue, how can we fix it with devcon.exe install?

Event Viewer Error

Device ROOT\MYSAMPLECLASS\0000 had a problem starting.

Driver Name: oem139.inf

Class Guid: {e2c4923e-5990-4d2d-b44a-0b9a36a7b1c3}

Service: MyECHO

Lower Filters: 

Upper Filters: 

Problem: 0x0

Problem Status: 0xC00000E5

Windows for home | Windows 11 | Devices and drivers

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-06-24T06:14:13+00:00

    Hello!

    My name is David N., and I am a Windows fan and assist users here with Windows questions. I will be happy to assist you.

    Unfortunately, this is the wrong forum for this question. This is a Community forum intended to assist individual consumers. As a result we are not equipped to assist with developer issues.

    For developer questions a better forum is https://learn.microsoft.com/en-us/answers/tags/. You can also find additional resources or contact Microsoft Developer support here: https://developer.microsoft.com/en-us/windows/s....

    I hope this helps! Please let me know if this resolves your issue or if you require additional assistance.

    Regards,

    David N.

    Was this answer helpful?

    0 comments No comments