USB device message detector
-
I need a simple Windows application to detect messages from a USB drive. When the application detects that a USB device has been inserted, I need to launch another application. I have found an example which works in .NET environments but I can't guarantee that all my users will be working on .NET-supported platforms. Does anyone know of a simple C++ application containing a basic message loop that I can adapt? I don't care about the UI. Alternately, is there an easy way to convert .NET code so that it will work on a non-.NET platform? I'm working in Visual C++ 2005 Express. Thanks!
-
I need a simple Windows application to detect messages from a USB drive. When the application detects that a USB device has been inserted, I need to launch another application. I have found an example which works in .NET environments but I can't guarantee that all my users will be working on .NET-supported platforms. Does anyone know of a simple C++ application containing a basic message loop that I can adapt? I don't care about the UI. Alternately, is there an easy way to convert .NET code so that it will work on a non-.NET platform? I'm working in Visual C++ 2005 Express. Thanks!
Hi, I think you can handle ON_WM_DEVICECHANGE(). Also refer the following link http://www.codeproject.com/system/HwDetect.asp Regards, Rameshkanth