system_tray to receive notifications of device removal
问题 I'm writing an application which check for my usb device and if the device is avialable make a dial-up connection. I use Rasdial to establish the connection. Unfortunately if I remove the USB cable the connection is not getting disconnected or notified to the user. So here I'm in a situation to check for the device removal . I Planned to run my application in system tray and wait for the device removal. Am I right here? If am right how to make the application wait for device removal,