Link to home
Start Free TrialLog in
Avatar of NJAL
NJAL

asked on

write a background windows process to monitor USB input

Hi,
   What is the way to write a background windows applicaiton. By that i mean to run it continuously in background to monitor input from the USB port. Once the background routine gets the input it has to trigger an application.
Please tell me how to do this.

IS it possible to write background processes for windows in VB or VC++?

Please help me ASAP:)

Thanking You
NJal
ASKER CERTIFIED SOLUTION
Avatar of gnuru
gnuru

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of huckey
huckey

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/scriptcenter/wmimatic.asp

This handy little gadget will write WMI code for you which will interogate all the properties and methods of physical hardware on the pc.

You should be able to find code within this script which will create the monitoring process you require. Couple this with the idea from Gnuru and you should have what you are after.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is to:

Accept gnuru's  comments as answer

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
st_steve
EE Cleanup Volunteer
Per recommendation.

YensidMod
EE Moderator