views:

236

answers:

2

I have a touch enabled device with WinCE, I need to show a UI whenever a USB device is inserted to the device. If there any event or method to identify the USB insertion in WinCE.

A: 

AFAIK, you have to register a SystemState handler for a SystemProperty.

thelost
I cant get you, can you please explain more briefly. It will be more pleasing if you can give a sample code or reference
Sundar
+1  A: 

If you want to monitor just USB sticks you can use RequestDeviceNotifications for block devices.

What kind of devices can be plugged to the USB?

You can also change the USB driver code to signal an event whenever it gets an interrupt and you can wait for that event.

Shaihi