The Issue about install device driver

涛 王 71 Reputation points
2022-06-20T06:30:07.35+00:00

Create a program that can install a driver of device.

following are testing steps:

  1. Open device manager and then uninstall Realtek(R) Audio driver.
  2. Running test program, it return failed when install driver.
  3. I retry above step1, and manual click the Scan For Hardware Changes.
  4. Running my test program, it return succ.

Based on the above test analysis, i have enhance my test program.

Before execuate insatll , program call the CM_Locate_DevNode and CM_reenumrate_DevNode functions.
Then, execuate install process. However, the result was not what I expected and still failed.

Can you give me some advice?

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,542 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,164 questions
{count} votes

1 answer

Sort by: Most helpful
  1. S.Sengupta 15,111 Reputation points MVP
    2022-06-30T01:52:34.047+00:00
    0 comments No comments