Click here to Skip to main content
16,007,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My Questions Are:-
(1)how to count time and show a log as a mobile phone in a window when a pen drive insert in a usb port?
(i)I want to see the pendrive insert time.
(ii)How many time the pendrive was connected to the computer.
Posted

1 solution

Capturing Device Events in a C# Windows Service[^] should help you capture the appropriate events.
You can then log accordingly.
 
Share this answer
 

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