Click here to Skip to main content
15,889,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: descriptin of any vc++(MFC) project Pin
David Crow1-Oct-07 3:23
David Crow1-Oct-07 3:23 
QuestionHow to use VectorFromBstr ? Pin
shir_k30-Sep-07 23:51
shir_k30-Sep-07 23:51 
Questionactivex in browser Pin
saisp30-Sep-07 23:36
saisp30-Sep-07 23:36 
AnswerRe: activex in browser Pin
Suneet.031-Oct-07 1:39
Suneet.031-Oct-07 1:39 
Questionchanging cursor in worker thread Pin
revanth198530-Sep-07 23:33
revanth198530-Sep-07 23:33 
AnswerRe: changing cursor in worker thread Pin
Programm3r1-Oct-07 0:00
Programm3r1-Oct-07 0:00 
AnswerRe: changing cursor in worker thread Pin
David Crow1-Oct-07 3:29
David Crow1-Oct-07 3:29 
QuestionFile security on NT Pin
Waldermort30-Sep-07 21:15
Waldermort30-Sep-07 21:15 
I'm getting my first taste of the nasty world of NT security issues, so please bare with me if this comes across as one of those newbie questions.

It is important that my program is allowed access to every file/folder on a volume. I realise to do this I must add an ACL into the file/folders' DACL. I am able to do this without any problems. But here is the problem, so far I have been adding the looged on users SID to the ACL, storing the old DACL and replacing it on program termination. But, it has come to my attention that this is opening a serious hole in NT's security.

If my program does not perform a clean exit, those DACLs will never be replaced, leaving the file/folders' wide open.

Is there any other way to do this? Is it possible to add an ACL for my current process and not need to re-adjust the objects security once finished? ie, once the process no longer exists, theoretically the SID would become invalid, would windows perform an auto cleanup?

All the examples I have found relate to taking ownership and completely re-writing the security, rather than updating it. Also I have found nothing regarding 'SID of current process'.

Waldermort

QuestionA string combination question Pin
nethp102030-Sep-07 21:14
nethp102030-Sep-07 21:14 
AnswerRe: A string combination question Pin
chandu00430-Sep-07 21:22
chandu00430-Sep-07 21:22 
GeneralRe: A string combination question Pin
nethp102030-Sep-07 21:45
nethp102030-Sep-07 21:45 
AnswerRe: A string combination question Pin
Nelek30-Sep-07 21:34
protectorNelek30-Sep-07 21:34 
GeneralRe: A string combination question Pin
nethp102030-Sep-07 21:46
nethp102030-Sep-07 21:46 
AnswerRe: A string combination question Pin
Stephen Hewitt30-Sep-07 22:09
Stephen Hewitt30-Sep-07 22:09 
GeneralRe: A string combination question Pin
nethp102030-Sep-07 22:14
nethp102030-Sep-07 22:14 
GeneralRe: A string combination question Pin
Stephen Hewitt30-Sep-07 22:16
Stephen Hewitt30-Sep-07 22:16 
QuestionRe: A string combination question Pin
David Crow1-Oct-07 3:43
David Crow1-Oct-07 3:43 
AnswerRe: A string combination question Pin
Mark Salsbery1-Oct-07 5:38
Mark Salsbery1-Oct-07 5:38 
Questionshortcut for increase/decrease indent in vc++ IDE Pin
rp_suman30-Sep-07 14:42
rp_suman30-Sep-07 14:42 
AnswerRe: shortcut for increase/decrease indent in vc++ IDE Pin
Naveen30-Sep-07 17:37
Naveen30-Sep-07 17:37 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
chandu00430-Sep-07 19:47
chandu00430-Sep-07 19:47 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
rp_suman30-Sep-07 21:48
rp_suman30-Sep-07 21:48 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
chandu00430-Sep-07 23:24
chandu00430-Sep-07 23:24 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
David Crow1-Oct-07 3:46
David Crow1-Oct-07 3:46 
GeneralRe: shortcut for increase/decrease indent in vc++ IDE Pin
rp_suman1-Oct-07 16:00
rp_suman1-Oct-07 16:00 

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.