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. How can I tell...

How can I tell...

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

    If file is locked or really user have no permission to write to the file? Thanks, Brian

    G U 3 Replies Last reply
    0
    • B Brian Shifrin

      If file is locked or really user have no permission to write to the file? Thanks, Brian

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      Brian Shifrin wrote: really user have no permission to write to the file? thats going to take a crash course in ACL's/ACE's/SID's - I'd start with :- http://world.std.com/~jimf/papers/nt-security/nt-security.html[^] and then :- http://opensource.devx.com/cplus/Article/16711/1954?pf=true[^] That may help you ... 'G'

      1 Reply Last reply
      0
      • B Brian Shifrin

        If file is locked or really user have no permission to write to the file? Thanks, Brian

        G Offline
        G Offline
        Garth J Lancaster
        wrote on last edited by
        #3

        but then again, maybe its simpler than that - I wonder if an attempt to open the file would produce a trappable 'no permissions error' - sorry, I cant check this right now (dont have MSDN here at the office) 'G'

        1 Reply Last reply
        0
        • B Brian Shifrin

          If file is locked or really user have no permission to write to the file? Thanks, Brian

          U Offline
          U Offline
          User 423850
          wrote on last edited by
          #4

          Use the _access api with which u can check for the access to the file and solve teh bug Thanx TAKE CARE

          B 1 Reply Last reply
          0
          • U User 423850

            Use the _access api with which u can check for the access to the file and solve teh bug Thanx TAKE CARE

            B Offline
            B Offline
            Brian Shifrin
            wrote on last edited by
            #5

            Sorry no go, _access calls dosmapper => EACCES when file is locked, when permission denied. as well as it will lie about write access to network shares. _access will report file/directory is writable when it isn't. Thanks, Brian

            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