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. QueryDosDevice() throws ERROR_ACCESS_DENIED for Windows universal apps

QueryDosDevice() throws ERROR_ACCESS_DENIED for Windows universal apps

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
5 Posts 2 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.
  • V Offline
    V Offline
    vikramlinux
    wrote on last edited by
    #1

    Hi Folks, I have created a sample console app (windows universal) using VS2015. If I call the method QueryDosDevice(), it results into ERROR_ACCESS_DENIED error. I am deploying this app on Windows 10. Interestingly I can call APIs from ntdll. But seems like it gives access denied error if I try to call APIs from kernel32. Are there are access (perhaps for volume management APIs) restrictions introduced for universal apps? If yes, Is there any way around it? -- Vikram

    Richard Andrew x64R 1 Reply Last reply
    0
    • V vikramlinux

      Hi Folks, I have created a sample console app (windows universal) using VS2015. If I call the method QueryDosDevice(), it results into ERROR_ACCESS_DENIED error. I am deploying this app on Windows 10. Interestingly I can call APIs from ntdll. But seems like it gives access denied error if I try to call APIs from kernel32. Are there are access (perhaps for volume management APIs) restrictions introduced for universal apps? If yes, Is there any way around it? -- Vikram

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      There are a whole host of restrictions for universal apps: Alternatives to Windows APIs in Windows Runtime apps - Windows app development[^]

      The difficult we do right away... ...the impossible takes slightly longer.

      V 1 Reply Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        There are a whole host of restrictions for universal apps: Alternatives to Windows APIs in Windows Runtime apps - Windows app development[^]

        The difficult we do right away... ...the impossible takes slightly longer.

        V Offline
        V Offline
        vikramlinux
        wrote on last edited by
        #3

        I went thr the alternative API's, but seems that they are not available with VS2012. Do we have any alternative legacy API which I can probably use?

        Richard Andrew x64R 1 Reply Last reply
        0
        • V vikramlinux

          I went thr the alternative API's, but seems that they are not available with VS2012. Do we have any alternative legacy API which I can probably use?

          Richard Andrew x64R Offline
          Richard Andrew x64R Offline
          Richard Andrew x64
          wrote on last edited by
          #4

          Unfortunately, no. The store app platform is very limited for security reasons. Perhaps you could explain what you're trying to achieve and someone could suggest a workaround.

          The difficult we do right away... ...the impossible takes slightly longer.

          V 1 Reply Last reply
          0
          • Richard Andrew x64R Richard Andrew x64

            Unfortunately, no. The store app platform is very limited for security reasons. Perhaps you could explain what you're trying to achieve and someone could suggest a workaround.

            The difficult we do right away... ...the impossible takes slightly longer.

            V Offline
            V Offline
            vikramlinux
            wrote on last edited by
            #5

            Is there any kernel equivalent of this method? I can see IoVolumeDeviceToDosName(), not sure. if this is correct one.

            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