|
-
March 8th, 2010, 08:58 AM
#1
How to Detect When an USB Device has been unplugged
Hi,
I am developing an application where I have to determine if an USB Connector assigned to a COM Port has been pulled out.
The obvious approach which I tried was to detect the available COM Ports using SerialPort.GetPortNames(). Unfortunately, even after physically pulling it out, the Port Name list still shows the same port being present.
Obviously, any operations would now fail as the connection is no longer available, but how to do this without making any communication, that is, without sending or receiving data.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|