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. Determine Boot Disk

Determine Boot Disk

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
3 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
    Abinash Mohanty
    wrote on last edited by
    #1

    Hi All, Can anybody please tell me how to determine which disk is the boot disk ie the disk by which the system boot took place using mfc. Regards Abinash

    M L 2 Replies Last reply
    0
    • A Abinash Mohanty

      Hi All, Can anybody please tell me how to determine which disk is the boot disk ie the disk by which the system boot took place using mfc. Regards Abinash

      M Offline
      M Offline
      Mohan Ramachandra
      wrote on last edited by
      #2

      "GetWindowsDirectory()" provides the path where windows is installed. From path you can retrive the drive letter (first character of the path). Through the drive letter you find out the physical drive number of the disk by using DeviceIOControl() and IOCTL_STORAGE_GET_DEVICE_NUMBER

      1 Reply Last reply
      0
      • A Abinash Mohanty

        Hi All, Can anybody please tell me how to determine which disk is the boot disk ie the disk by which the system boot took place using mfc. Regards Abinash

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        It's a Win32 FAQ (on Win32 ng[^] , system, since 1995 )

        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