- May 6, 2011
- 8,172
- 137
- 106
You've seen the message
		
		
	
	
		 
	
I need to find a way to know that windows is doing this, because if you try to talk to a usb HID device before it finishes installing the plug and play driver, it will pop up an even more annoying message:
		 
	
And I definitely do not want that box popping up! So, is there a way to find out if windows is installing new hardware, maybe some process I can scan for?
edit: SOLVED. I used WINAPI CreateToolhelp32Snapshot to determine if (and how many instances of) the rundll32.exe process was running. I then searched each one for setupapi.dll.
			
			 
	I need to find a way to know that windows is doing this, because if you try to talk to a usb HID device before it finishes installing the plug and play driver, it will pop up an even more annoying message:
 
	And I definitely do not want that box popping up! So, is there a way to find out if windows is installing new hardware, maybe some process I can scan for?
edit: SOLVED. I used WINAPI CreateToolhelp32Snapshot to determine if (and how many instances of) the rundll32.exe process was running. I then searched each one for setupapi.dll.
			
				Last edited: 
				
		
	
										
										
											
	
										
									
								 
				
		 
			 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		
 Facebook
Facebook Twitter
Twitter