SetupDiRemoveDevice()
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I am trying to remove a device using the fn,
bOk = SetupDiRemoveDevice(hDevInfo,devinfoData[n1]);
as soon as I do this, (I think there are some bugs in its driver) it gets to the found new hardware wizard, and recreats the registries ( for I want to remove that device and delete the registries). How do I overcome this. I know we can tell device manager to send me all the devices messages so that when I get new hardware message, I can ignore it. Can anyone help me how to do that? Thanks in advance.