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
G

Gnanakkumaran D

@Gnanakkumaran D
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help!....I need a code to find a file is read only or not
    G Gnanakkumaran D

    Hi, I need a code to find if a file in Windows NT is read only or not. The file attribute is not marked read only, but it was made read only using the file security settings (i.e NTExplorer->File->RightMouseClick->Properties->Security->Add->Everyone->Read). I would appreciate if some one help me find a code which will look through the file ACL(Access Control List) and determine if a file is read only or not. Thanks Kumar

    Article Writing

  • Please Help me...How to find if a file is read only or not
    G Gnanakkumaran D

    Hi, I appreciate your prompt response, I already tried this one too. This will return read only if a file "attribute" is flagged "Read Only". CFileFind also work based on "Read Only" attribute set on the file, if the file is "not flagged" "Read Only", it does not look at the Windows-NT ACL security settings. In my situation, the file is not marked read only (i.e is the read only attribute is not set)... but I used file->properties->security and Removed the existing settings and added EveryOne -> Read. This makes the file read only even though the the attribute is not set to Read Only. What happens here is file itself is not read only, but it is made read only for certain users using NT security settings. If I add one more setting for individual user and give "FULL Control" that user can write to the file. But the Standard C functions access() and CFileFind::IsReadOnly() looks at the attribute setting not at the security level settings. So what happens is, these functions return the file is writeable, even though we can not write to it. I have no clue how to get actual file permissions based on the Security settings Any info regarding this will be highly appreciated. Thanks Kumar

    C / C++ / MFC

  • Please Help me...How to find if a file is read only or not
    G Gnanakkumaran D

    Hi, I am trying to find whether file is read only or not on NT system. The file permission is set using NT explorer, right mouse click on file->properties->Security and EveryOne just Read Only. But the Read only attribure is not set. When I use the standard C function "access(filename, 02)" or CFileFind::IsReadOnly it returns the file is writable (since the read only attribute is not set). But in reality this file is not writable, since EveryOne has Read Only access. How do I access this windows NT specific access permission to determine the file is read only or not. I would appreciate any help regarding this. Any sample code.... Thanks Kumar :confused:

    C / C++ / MFC
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups