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. Windows API
  4. Permission

Permission

Scheduled Pinned Locked Moved Windows API
csharpvisual-studiohelpquestionworkspace
4 Posts 4 Posters 3 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.
  • T Offline
    T Offline
    Try
    wrote on last edited by
    #1

    Hi all, Environment: Windows Vista, Visual Studio 2005. I have developed an application, which is related to file operations. In Standard User (Vista) - [In Program Files], if i programmatically Create/Delete/Move files or folders it's giving Access Denied error. But if i do same operation manually, it asks for Administrative password. If we provide it, it will Create/Delete/Move files or folders. Can i do this programmatically? (i.e providing Administrative password). Thanks in advance.

    J D P 3 Replies Last reply
    0
    • T Try

      Hi all, Environment: Windows Vista, Visual Studio 2005. I have developed an application, which is related to file operations. In Standard User (Vista) - [In Program Files], if i programmatically Create/Delete/Move files or folders it's giving Access Denied error. But if i do same operation manually, it asks for Administrative password. If we provide it, it will Create/Delete/Move files or folders. Can i do this programmatically? (i.e providing Administrative password). Thanks in advance.

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      You could always add a manifest file to your application, telling vista to start it with administrator privileges. regards


      Jonathan Wilkes Darka [Xanya.net]

      1 Reply Last reply
      0
      • T Try

        Hi all, Environment: Windows Vista, Visual Studio 2005. I have developed an application, which is related to file operations. In Standard User (Vista) - [In Program Files], if i programmatically Create/Delete/Move files or folders it's giving Access Denied error. But if i do same operation manually, it asks for Administrative password. If we provide it, it will Create/Delete/Move files or folders. Can i do this programmatically? (i.e providing Administrative password). Thanks in advance.

        D Offline
        D Offline
        Daniel Grunwald
        wrote on last edited by
        #3

        If you want to write an explorer clone that asks for permission for such operations, take a look at this link: http://blogs.msdn.com/vistacompatteam/archive/2006/09/28/CoCreateInstanceAsAdmin-or-CreateElevatedComObject-sample.aspx[^]

        1 Reply Last reply
        0
        • T Try

          Hi all, Environment: Windows Vista, Visual Studio 2005. I have developed an application, which is related to file operations. In Standard User (Vista) - [In Program Files], if i programmatically Create/Delete/Move files or folders it's giving Access Denied error. But if i do same operation manually, it asks for Administrative password. If we provide it, it will Create/Delete/Move files or folders. Can i do this programmatically? (i.e providing Administrative password). Thanks in advance.

          P Offline
          P Offline
          Paresh Chitte
          wrote on last edited by
          #4

          Please refer this[^]. Regards, Paresh.

          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