Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How can I disable/enable a firewire card in windows 2000 through Visual C++ 6.0

How can I disable/enable a firewire card in windows 2000 through Visual C++ 6.0

Scheduled Pinned Locked Moved C / C++ / MFC
c++hardwarequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tim Yen
    wrote on last edited by
    #1

    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

    I 1 Reply Last reply
    0
    • T Tim Yen

      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

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      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.

      T 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        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.

        T Offline
        T Offline
        Tim Yen
        wrote on last edited by
        #3

        :-D Thanks Iain, exactly what I was looking for. regards, Tim

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups