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. UAC and protected folder

UAC and protected folder

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

    I installed a simple (and quite old application) on Windows 7 (UAC is enable) and it is not saved a simple text file (a simple LOG file) on C:\ ! I'm sure that the problem is related on UAC because disabling it the program runs well. So, how to bypass the UAC and have the permission to write that file? I suppose it can be also difficult to manage the registry, there is also in this case some special procedure to use? thanks...


    Russell

    S K 2 Replies Last reply
    0
    • R Russell

      I installed a simple (and quite old application) on Windows 7 (UAC is enable) and it is not saved a simple text file (a simple LOG file) on C:\ ! I'm sure that the problem is related on UAC because disabling it the program runs well. So, how to bypass the UAC and have the permission to write that file? I suppose it can be also difficult to manage the registry, there is also in this case some special procedure to use? thanks...


      Russell

      S Offline
      S Offline
      ShilpiP
      wrote on last edited by
      #2

      Use com elevation moniker : Please view this link : http://blogs.msdn.com/vistacompatteam/archive/2006/09/28/CoCreateInstanceAsAdmin-or-CreateElevatedComObject-sample.aspx[^] http://www.codeproject.com/KB/vista-security/Elevation_For_Dummies/ElevatorForDummies.zip[^]

      Yes U Can ...If U Can ,Dream it , U can do it ...ICAN

      1 Reply Last reply
      0
      • R Russell

        I installed a simple (and quite old application) on Windows 7 (UAC is enable) and it is not saved a simple text file (a simple LOG file) on C:\ ! I'm sure that the problem is related on UAC because disabling it the program runs well. So, how to bypass the UAC and have the permission to write that file? I suppose it can be also difficult to manage the registry, there is also in this case some special procedure to use? thanks...


        Russell

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        your app needs the rights to write this file. Runas or the Elevation moniker is needed.

        Press F1 for help or google it. Greetings from Germany

        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