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. path problem

path problem

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

    hy can someone pls tell me what is the correct kernel path for a root directory like c:\ for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ? gabby

    D H 2 Replies Last reply
    0
    • G gamitech

      hy can someone pls tell me what is the correct kernel path for a root directory like c:\ for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ? gabby

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

      euacela wrote:

      ...but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ?

      Is it HardDiskVolume0 instead?


      "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

      "There is no death, only a change of worlds." - Native American Proverb

      G 1 Reply Last reply
      0
      • D David Crow

        euacela wrote:

        ...but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ?

        Is it HardDiskVolume0 instead?


        "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

        "There is no death, only a change of worlds." - Native American Proverb

        G Offline
        G Offline
        gamitech
        wrote on last edited by
        #3

        no that is the pb. HardDiskVolume1 -> c:\ HardDiskVolume2 -> d:\ etc . . . I saw somewhere something with _root_ but don t know exactly where and don t know exactly how :( gabby

        D 1 Reply Last reply
        0
        • G gamitech

          no that is the pb. HardDiskVolume1 -> c:\ HardDiskVolume2 -> d:\ etc . . . I saw somewhere something with _root_ but don t know exactly where and don t know exactly how :( gabby

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

          So what is NtOpenFile() returning?


          "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

          "There is no death, only a change of worlds." - Native American Proverb

          G 1 Reply Last reply
          0
          • G gamitech

            hy can someone pls tell me what is the correct kernel path for a root directory like c:\ for a folder inside c:\ I use NtOpenFile with this parameter in the oject atritues structure \\Device\\HardDiskVolume1\\name.exe but if I want a handle to c:\ and if I use \\Device\\HardDiskVolume1 or \\Device\\HardDiskVolume1\\ does not work. can some one help me telling what is the correct path ? gabby

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            what do you need?

            1 Reply Last reply
            0
            • D David Crow

              So what is NtOpenFile() returning?


              "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

              "There is no death, only a change of worlds." - Native American Proverb

              G Offline
              G Offline
              gamitech
              wrote on last edited by
              #6

              returns !ERROR_SUCCESS . Man I am not working with the ddk. this is an user mode aplication so I can't get extended help. gabby

              D 1 Reply Last reply
              0
              • G gamitech

                returns !ERROR_SUCCESS . Man I am not working with the ddk. this is an user mode aplication so I can't get extended help. gabby

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

                You can get more information about the error by checking status information returned in IoStatusBlock.


                "Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

                "There is no death, only a change of worlds." - Native American Proverb

                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