Detecting USB Connection — C# .Net CF 3.5

后端 未结 2 731
暗喜
暗喜 2021-02-19 22:27

I have an application (.Net Compact Framework 3.5) running on a Windows Mobile 6.1 device and I want to detect when the USB connection changes (either something connects or disc

2条回答
  •  不要未来只要你来
    2021-02-19 23:00

    Check this out, you might be able to grab part of the source code. Its written in C# with a GUI. Keep in mind every time you have a program running that is checking for new USB drives, it will take up memory and CPU so you might want to tone down the intervals at which it checks and then supply a "refresh" button for impatient users.

提交回复
热议问题