hardware detection

Mar 23 2010 6:01 PM
I am trying to develop a software that provides hardware details of remote pc's in LAN. If there is change in status of hardware like mouse is unplugged.It is informed on server.Similarly keyboard, monitor etc unplugging needs to b detected. I used wmi to get hardware details.But problem is that if i unplug mouse etc , no update is provided. It provides information like mouse name etc similarly when mouse was plugged.But if we reboot pc and unplug mouse meanwhile it shows no info about mouse as it is unplugged at boot tim.But if i plug mouse it do not update. How can i get information about unplugging hardware at real time.I want hardware detail that can be updated that is mouse etc unplugging can be detected. Anybody can help on it.Ur suggestions plz.



I want to add that what i think is that wmi picks hardware details that were obtained at boot time.Code tht gets hardware info at boot time can help my cause i think.If any body can provide help.I think i can repeat the code to update the hardware info.any guidance.thanks