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. System Drive

System Drive

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

    I used WMI to get the information of all physical and logical drive information of the system. It works fine with windows XP. But WMI fails to in Windows Vista and Windows 7. I think because of Securities issues? If yes then how can I bypass these?

    _ B 2 Replies Last reply
    0
    • J john5632

      I used WMI to get the information of all physical and logical drive information of the system. It works fine with windows XP. But WMI fails to in Windows Vista and Windows 7. I think because of Securities issues? If yes then how can I bypass these?

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      WMI needs administrative privileges even for XP. You can always run you're application requiring elevated privileges in Vista onwards.

      «_Superman_» I love work. It gives me something to do between weekends.
      Microsoft MVP (Visual C++)

      1 Reply Last reply
      0
      • J john5632

        I used WMI to get the information of all physical and logical drive information of the system. It works fine with windows XP. But WMI fails to in Windows Vista and Windows 7. I think because of Securities issues? If yes then how can I bypass these?

        B Offline
        B Offline
        BIJU Manjeri
        wrote on last edited by
        #3

        yes you are correct. Windows Vista and 7 have additional security features, please try CoInitializeSecurity() with following params. CoInitializeSecurity( NULL,-1,NULL,NULL,RPC_C_AUTHN_LEVEL_PKT ,RPC_C_IMP_LEVEL_IDENTIFY, NULL,EOAC_NONE,NULL);

        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