Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CToolBar and Controls Pin
l a u r e n20-Apr-01 0:41
l a u r e n20-Apr-01 0:41 
GeneralRe: CToolBar and Controls Pin
Drake Elsari20-Apr-01 2:13
Drake Elsari20-Apr-01 2:13 
GeneralRe: CToolBar and Controls Pin
l a u r e n20-Apr-01 3:46
l a u r e n20-Apr-01 3:46 
GeneralRe: CToolBar and Controls Pin
Drake Elsari20-Apr-01 10:15
Drake Elsari20-Apr-01 10:15 
QuestionHow does program updating work? Pin
Michael Anderson19-Apr-01 7:12
Michael Anderson19-Apr-01 7:12 
GeneralPlease Help me...How to find if a file is read only or not Pin
Gnanakkumaran D19-Apr-01 5:49
Gnanakkumaran D19-Apr-01 5:49 
GeneralRe: Please Help me...How to find if a file is read only or not Pin
Hadi Rezaee19-Apr-01 10:36
Hadi Rezaee19-Apr-01 10:36 
GeneralRe: Please Help me...How to find if a file is read only or not Pin
Gnanakkumaran D19-Apr-01 10:42
Gnanakkumaran D19-Apr-01 10:42 
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
GeneralSHFileOperation Pin
19-Apr-01 5:45
suss19-Apr-01 5:45 
GeneralThread management Pin
Henrik19-Apr-01 3:32
Henrik19-Apr-01 3:32 
GeneralRe: Thread management Pin
Michael Dunn19-Apr-01 8:45
sitebuilderMichael Dunn19-Apr-01 8:45 
GeneralContext menu shell extension for IIS 5.0 Pin
Furer Alexander19-Apr-01 3:24
Furer Alexander19-Apr-01 3:24 
GeneralPath Pin
19-Apr-01 2:32
suss19-Apr-01 2:32 
GeneralRe: Path Pin
orcun colak19-Apr-01 10:14
orcun colak19-Apr-01 10:14 
QuestionHow do I disable Ctrl+Alt+Del ?? Pin
18-Apr-01 20:10
suss18-Apr-01 20:10 
AnswerRe: How do I disable Ctrl+Alt+Del ?? Pin
18-Apr-01 20:17
suss18-Apr-01 20:17 
GeneralRe: How do I disable Ctrl+Alt+Del ?? Pin
18-Apr-01 23:25
suss18-Apr-01 23:25 
GeneralRe: How do I disable Ctrl+Alt+Del ?? Pin
19-Apr-01 2:38
suss19-Apr-01 2:38 
QuestionHow do I disable Ctrl+Alt+Del ?? Pin
18-Apr-01 20:09
suss18-Apr-01 20:09 
AnswerRe: How do I disable Ctrl+Alt+Del ?? Pin
ac952_z_cn10-Sep-01 17:20
ac952_z_cn10-Sep-01 17:20 
GeneralFile Properties Dialog Pin
Liam O'Hagan18-Apr-01 15:04
Liam O'Hagan18-Apr-01 15:04 
GeneralRe: File Properties Dialog Pin
Michael Dunn18-Apr-01 15:35
sitebuilderMichael Dunn18-Apr-01 15:35 
GeneralRe: File Properties Dialog Pin
Liam O'Hagan18-Apr-01 20:25
Liam O'Hagan18-Apr-01 20:25 
GeneralLinking problems Pin
Henrik18-Apr-01 13:58
Henrik18-Apr-01 13:58 
GeneralRe: Linking problems Pin
Michael Dunn18-Apr-01 15:01
sitebuilderMichael Dunn18-Apr-01 15:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.