Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hello All,

I want to write a program which can detect USB deice insertion and removal.
I know that I have to use some methods...

RegisterDeviceNotification()

and DeviceChange message.

But i am not able to combine both.

So could anybody help me to write a simple program in C for the same.


Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 3-Oct-13 2:49am    
Could be an interesting useful question, but... " I am not able to..." is not informative.
—SA

1 solution

 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900