How can I disable/enable a firewire card in windows 2000 through Visual C++ 6.0
-
Hi, I'm trying to disable and then re enable a firewire card (or any generic hardware device for that matter) through software. I'm doing this is so I can turn the power off and on to my firewire camera when it goes haywire without having to unplug it and plug it back in. Im programming in visual c++ 6.0 on windows 2000 but any clues as to where to begin even if in other languages would be appreciated. :) regards, Tim
-
Hi, I'm trying to disable and then re enable a firewire card (or any generic hardware device for that matter) through software. I'm doing this is so I can turn the power off and on to my firewire camera when it goes haywire without having to unplug it and plug it back in. Im programming in visual c++ 6.0 on windows 2000 but any clues as to where to begin even if in other languages would be appreciated. :) regards, Tim
If you know the name of the driver, you can use the following API functions to start / stop / control a service / driver. OpenSCManager OpenService ControlService. Look them up on MSDN for details on how to use them. Alternatively, you may be able to find out the IOCTL codes to send a "reset" to your driver using DeviceIOControl. Iain.
-
If you know the name of the driver, you can use the following API functions to start / stop / control a service / driver. OpenSCManager OpenService ControlService. Look them up on MSDN for details on how to use them. Alternatively, you may be able to find out the IOCTL codes to send a "reset" to your driver using DeviceIOControl. Iain.