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. [Message Deleted]

[Message Deleted]

Scheduled Pinned Locked Moved C / C++ / MFC
4 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.
  • C Offline
    C Offline
    C myLife
    wrote on last edited by
    #1

    [Message Deleted]

    M D 2 Replies Last reply
    0
    • C C myLife

      [Message Deleted]

      M Offline
      M Offline
      Matthew Faithfull
      wrote on last edited by
      #2

      I can't tell you how to do it, having tried half seriously myself on occassions and failed but I can tell you that DefineDosDevice is not the way to go and throttling somebody at Microsoft until they publish the interface for the Logical Disk Manager would probably be more productive. At your own risk of course. :)

      "The secret of happiness is freedom, and the secret of freedom, courage." Thucydides (B.C. 460-400)

      1 Reply Last reply
      0
      • C C myLife

        [Message Deleted]

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

        mayank_3103 wrote:

        My main purpose is to find the drive letter of a newly created partition...

        What do you know about this "newly created partition?" Have you looked at QueryDosDevice()?

        "Love people and use things, not love things and use people." - Unknown

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        C 1 Reply Last reply
        0
        • D David Crow

          mayank_3103 wrote:

          My main purpose is to find the drive letter of a newly created partition...

          What do you know about this "newly created partition?" Have you looked at QueryDosDevice()?

          "Love people and use things, not love things and use people." - Unknown

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          C Offline
          C Offline
          C myLife
          wrote on last edited by
          #4

          what my problem is suppose I have 2 hard disk connected in my PC They both having 4 partitions each. by using the function "GetLogicalDrives" I can get the drive letters of all the partitions. Say suppose C:,D:,E:,F:,G:,H:,I:,J:. Now the problem is how I am going to identify which drive letters belongs to which Hard drive? If I just want to have the drive letters of the "PhysicalDrive0" how I am going to differentiate. Is there any function through which I can get the Disk number from drive letters??? Hope you must have understood my problem!!! Thanks Mayank

          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