Monitoring a Driver
Posted: Mon Aug 21, 2006 8:18 pm
I've got an old crappy VoiceMail system that connects to a Windows machine. The Windows machine keeps losing 'sync' with the hardware. When this happens, the drivers for it in device manager show yellow exclamation marks. Usually, unplugging and plugging the hardware fixes things, but I want to find an automated way. I found that if I go into device manager, and disable the 'USB Hub' for the device, and then reenable it, it fixes things. So, I want to write a program that monitors the status of the driver, and disables and reenables it when it fails. Problem is, I don't have a clue how to do it, or even if it's possible.
Is there a way to monitor, and disable/enable drivers from within Purebasic?
Is there a way to monitor, and disable/enable drivers from within Purebasic?