question about starting and stopping a pci device

Discussion in 'Windows Vista Drivers' started by Bruno van Dooren, Dec 13, 2004.

  1. Hi,

    I am trying to make a small lib based on the devcon sample that is supplied
    with the DDK for mimicking the functionality of the device manager for
    starting and stopping a device.

    This works for disabling the device, but when I try to start the device
    again i get device error 10. after some testing it turns out that the devcon
    tool itself has the same results.

    does anyone have an idea about what the cause of this could be. devcon is
    made by microsoft themselves, so i should think that its device mimics the
    device manager, but this does not seem to be the case.

    kind regards,
    Bruno van Dooren, Dec 13, 2004
    1. Advertisements

  2. Are you able to stop and start the device in the device manager without code
    10 error?

    Eliyas Yakub [MSFT], Dec 14, 2004
    1. Advertisements

  3. Yes i am.
    using the XP device manager, the device starts and stops normally without
    any problem.

    doing the same with the devcon tool gives me an 'error 10' when i try to
    start the device again.

    kind regards,
    Bruno van Dooren, Dec 14, 2004
  4. I don't think this is an issue with devcon. I tried disabling and enabling
    couple of PCI devices on my system and it worked pretty well. Couple of

    1) Try the devcon on other devices.
    2) Try it on another system.
    3) Look into setupapi.log and see if you find any clues as to why it's
    failing with code 10.
    4) If you are using the devcon from XP DDK, try the one from Server 2003
    Eliyas Yakub [MSFT], Dec 16, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.