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. Detect USB Pendrive

Detect USB Pendrive

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
6 Posts 5 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.
  • M Offline
    M Offline
    Manmohan29
    wrote on last edited by
    #1

    I want to detect USB pen drive when it is inserted in the PC. My MFC project will list its contents(Files n directories) to allow user to move or copy them. How to do THIS!

    Manmohan Bishnoi

    D I 2 Replies Last reply
    0
    • M Manmohan29

      I want to detect USB pen drive when it is inserted in the PC. My MFC project will list its contents(Files n directories) to allow user to move or copy them. How to do THIS!

      Manmohan Bishnoi

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

      Have you looked at the WM_DEVICECHANGE message?

      "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      1 Reply Last reply
      0
      • M Manmohan29

        I want to detect USB pen drive when it is inserted in the PC. My MFC project will list its contents(Files n directories) to allow user to move or copy them. How to do THIS!

        Manmohan Bishnoi

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

        Follow my name, to my articles. One of them should do exactly what you want. Iain. [modified:] ps, OK, I'll help you be lazy: Detecting when drives are added or removed[^]

        I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

        modified on Monday, September 21, 2009 12:31 PM

        R M 2 Replies Last reply
        0
        • I Iain Clarke Warrior Programmer

          Follow my name, to my articles. One of them should do exactly what you want. Iain. [modified:] ps, OK, I'll help you be lazy: Detecting when drives are added or removed[^]

          I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

          modified on Monday, September 21, 2009 12:31 PM

          R Offline
          R Offline
          Rajesh R Subramanian
          wrote on last edited by
          #4

          Iain Clarke, Warrior Programmer wrote:

          Follow my name, to my articles. One of them should do exactly what you want.

          Iain Clarke, Lazy Programmer. :)

          It is a crappy thing, but it's life -^ Carlo Pallini

          I 1 Reply Last reply
          0
          • R Rajesh R Subramanian

            Iain Clarke, Warrior Programmer wrote:

            Follow my name, to my articles. One of them should do exactly what you want.

            Iain Clarke, Lazy Programmer. :)

            It is a crappy thing, but it's life -^ Carlo Pallini

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

            Well, the article is pretty well titled, in an appropriately named section. So my initial thought was that is they could not even be bothered to follow my instructions, they can do without help! As you can see, I weakened! Iain Clarke, Softie Programmer!

            I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

            1 Reply Last reply
            0
            • I Iain Clarke Warrior Programmer

              Follow my name, to my articles. One of them should do exactly what you want. Iain. [modified:] ps, OK, I'll help you be lazy: Detecting when drives are added or removed[^]

              I have now moved to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

              modified on Monday, September 21, 2009 12:31 PM

              M Offline
              M Offline
              Moak
              wrote on last edited by
              #6

              Thanks, good to know! :) /Lazy Moak

              Webchat in Europe :java: (only 4K)

              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