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. Launching Device Manager or manipulating device manager from C++

Launching Device Manager or manipulating device manager from C++

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonhelpquestion
10 Posts 3 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.
  • A Offline
    A Offline
    ajisthekingofpop
    wrote on last edited by
    #1

    I want to be able to automatically install some driver files for use by my application. I have looked high and low and cant find any API documentation to help me out. Does anyone know of a way?

    D A M 3 Replies Last reply
    0
    • A ajisthekingofpop

      I want to be able to automatically install some driver files for use by my application. I have looked high and low and cant find any API documentation to help me out. Does anyone know of a way?

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You can use ShellExecute() or CreateProcess() with devmgmt.msc.


      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

      "Judge not by the eye but by the heart." - Native American Proverb

      A 1 Reply Last reply
      0
      • D David Crow

        You can use ShellExecute() or CreateProcess() with devmgmt.msc.


        "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

        "Judge not by the eye but by the heart." - Native American Proverb

        A Offline
        A Offline
        ajisthekingofpop
        wrote on last edited by
        #3

        Sorry to be such a pain. Can you eleborate a little? I have used both these functions in the past but how on earth would I use them to prompt the device manager to install some drivers from a particular location?

        D 1 Reply Last reply
        0
        • A ajisthekingofpop

          I want to be able to automatically install some driver files for use by my application. I have looked high and low and cant find any API documentation to help me out. Does anyone know of a way?

          A Offline
          A Offline
          ajisthekingofpop
          wrote on last edited by
          #4

          I want to be able to prompt the Device Manager to install some driver files from a specific location from C++.

          D 1 Reply Last reply
          0
          • A ajisthekingofpop

            Sorry to be such a pain. Can you eleborate a little? I have used both these functions in the past but how on earth would I use them to prompt the device manager to install some drivers from a particular location?

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            My reply was simply in response to the "Launching Device Manager" subject. It obviously could not be used to install devices/drivers.


            "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

            "Judge not by the eye but by the heart." - Native American Proverb

            A 1 Reply Last reply
            0
            • A ajisthekingofpop

              I want to be able to prompt the Device Manager to install some driver files from a specific location from C++.

              D Offline
              D Offline
              David Crow
              wrote on last edited by
              #6

              Do those driver files have a setup/install program?


              "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

              "Judge not by the eye but by the heart." - Native American Proverb

              A 1 Reply Last reply
              0
              • D David Crow

                Do those driver files have a setup/install program?


                "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                "Judge not by the eye but by the heart." - Native American Proverb

                A Offline
                A Offline
                ajisthekingofpop
                wrote on last edited by
                #7

                No. They are custom drivers that have been written for our specific hardware. I have looked high and low for information on it. Im sure its possible but MSDN doesn't have all that much information. The Linux world makes it so much easier :(

                D 1 Reply Last reply
                0
                • D David Crow

                  My reply was simply in response to the "Launching Device Manager" subject. It obviously could not be used to install devices/drivers.


                  "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                  "Judge not by the eye but by the heart." - Native American Proverb

                  A Offline
                  A Offline
                  ajisthekingofpop
                  wrote on last edited by
                  #8

                  Thanks David. :(

                  1 Reply Last reply
                  0
                  • A ajisthekingofpop

                    No. They are custom drivers that have been written for our specific hardware. I have looked high and low for information on it. Im sure its possible but MSDN doesn't have all that much information. The Linux world makes it so much easier :(

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    Maybe devmgr.dll has some exported functions (e.g., DeviceCreateHardwarePage()) that can be used. http://www.experts-exchange.com/Programming/Q_20617785.html[^]


                    "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                    "Judge not by the eye but by the heart." - Native American Proverb

                    1 Reply Last reply
                    0
                    • A ajisthekingofpop

                      I want to be able to automatically install some driver files for use by my application. I have looked high and low and cant find any API documentation to help me out. Does anyone know of a way?

                      M Offline
                      M Offline
                      Mike Dimmick
                      wrote on last edited by
                      #10

                      Driver Installation[^] on Windows Hardware Developer Central.

                      Stability. What an interesting concept. -- Chris Maunder

                      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