From: palaniappan chellappan on
Hi all,

I am trying to write a c# class library , as a wrapper around
RegisterDeviceNotification().
The objective is, The class library should rise an event whenever some
usb device is
plugged in.

I got an example from
http://www.dotnet247.com/247reference/msgs/32/164968.aspx
(window application example).

But, RegisterDeviceNotification() needs a handle, But My c# class
library don't have any
handle ? ( In above example, window form's handle is used. )

If i am lacking in basics, please redirect me to some tutorials.

thanks,
palani