setting file access rights

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcus

    setting file access rights

    I want to set file access rights in c++.

    First time my application is run it is run by a Windows administrator.
    This run creates some files that I want all users of that local
    computer to be able to read/write. Some of these users are limited
    Windows users with limited rights.

    How can I set access rights on these files from c++ or c or win32 or
    ....?

    I have found SetNamedSecurit yInfo method, could this help me?

    Do someone have a code sample how to do this?

  • Victor Bazarov

    #2
    Re: setting file access rights

    Marcus wrote:
    I want to set file access rights in c++.
    That is impossible, C++ has no means for that.
    [..]
    Do someone have a code sample how to do this?
    Ask in the newsgroup that covers your OS.

    V
    --
    Please remove capital 'A's when replying by e-mail
    I do not respond to top-posted replies, please don't ask


    Comment

    • VJ

      #3
      Re: setting file access rights

      Victor Bazarov wrote:
      Marcus wrote:
      >
      >>I want to set file access rights in c++.
      >
      >
      That is impossible, C++ has no means for that.
      >
      >
      >>[..]
      >>Do someone have a code sample how to do this?
      >
      >
      Ask in the newsgroup that covers your OS.
      >
      V
      he probably means this:

      maybe its same for windows :P

      but yes, wrong group

      Comment

      Working...