Detection of device on insertion/removal from system
-
Can anybody make a program in VB.NET (not in C#) to retrieve device information and detect when a device gets connected to a PC.I have already tried my hands in it but not get any related atricles on DEV_BROADCAST_DEVICEINTERFACE or GUID cass.Can it be done through System.InterOpServices.DLLImportAttribute?Mention the classes and properties of that classes.
Please Send me the solution ASAP
-
Can anybody make a program in VB.NET (not in C#) to retrieve device information and detect when a device gets connected to a PC.I have already tried my hands in it but not get any related atricles on DEV_BROADCAST_DEVICEINTERFACE or GUID cass.Can it be done through System.InterOpServices.DLLImportAttribute?Mention the classes and properties of that classes.
Please Send me the solution ASAP
I might be wrong but I think that the only way to do this is by writing a driver. Devices being connected/disconnected cause an interrupt at KERNEL level, and those addresses are out of bounds in user mode.