Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help with custom message broadcasting(Inter process communication) Pin
callousfantom9-Aug-09 23:27
callousfantom9-Aug-09 23:27 
GeneralRe: Help with custom message broadcasting(Inter process communication) Pin
«_Superman_»10-Aug-09 3:59
professional«_Superman_»10-Aug-09 3:59 
GeneralRe: Help with custom message broadcasting(Inter process communication) Pin
callousfantom10-Aug-09 18:05
callousfantom10-Aug-09 18:05 
Questionhow to create a file shared among all users Pin
Joseph Marzbani7-Aug-09 2:03
Joseph Marzbani7-Aug-09 2:03 
AnswerRe: how to create a file shared among all users Pin
CPallini7-Aug-09 2:15
mveCPallini7-Aug-09 2:15 
GeneralRe: how to create a file shared among all users Pin
Joseph Marzbani7-Aug-09 2:24
Joseph Marzbani7-Aug-09 2:24 
GeneralRe: how to create a file shared among all users Pin
CPallini7-Aug-09 2:33
mveCPallini7-Aug-09 2:33 
GeneralRe: how to create a file shared among all users Pin
Omri1217-Aug-09 5:32
Omri1217-Aug-09 5:32 
You are probably right.

If you want to have EVERYONE permission, you need to create new security descriptor.
NULL says that the default ACL is used, i.e. only the user or someone with higher privileges (administrator for example) can change the file.

Try this:

SECURITY_ATTRIBUTES m_pSecAttrib;
SECURITY_DESCRIPTOR* m_pSecDesc;

m_pSecDesc = (SECURITY_DESCRIPTOR*)LocalAlloc(LPTR,
SECURITY_DESCRIPTOR_MIN_LENGTH);

InitializeSecurityDescriptor(m_pSecDesc,
SECURITY_DESCRIPTOR_REVISION);


SetSecurityDescriptorDacl(m_pSecDesc,TRUE,(PACL)NULL,FALSE))

m_pSecAttrib.nLength = sizeof(SECURITY_ATTRIBUTES);
m_pSecAttrib.bInheritHandle = TRUE;
m_pSecAttrib.lpSecurityDescriptor = m_pSecDesc;

It should create security descriptor with EVERYONE permission.
Instead of NULL, send &m_pSecAttrib.

Hope I helped.
QuestionRe: how to create a file shared among all users Pin
David Crow7-Aug-09 3:09
David Crow7-Aug-09 3:09 
QuestionReading Simplified Chinese String. [modified] Pin
gothic_coder6-Aug-09 21:23
gothic_coder6-Aug-09 21:23 
AnswerRe: Reading Simplified Chinese String. Pin
sashoalm6-Aug-09 22:04
sashoalm6-Aug-09 22:04 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder6-Aug-09 22:32
gothic_coder6-Aug-09 22:32 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm6-Aug-09 23:22
sashoalm6-Aug-09 23:22 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder6-Aug-09 23:48
gothic_coder6-Aug-09 23:48 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm7-Aug-09 0:14
sashoalm7-Aug-09 0:14 
GeneralRe: Reading Simplified Chinese String. Pin
Adam Roderick J7-Aug-09 0:50
Adam Roderick J7-Aug-09 0:50 
GeneralRe: Reading Simplified Chinese String. Pin
sashoalm7-Aug-09 1:27
sashoalm7-Aug-09 1:27 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder7-Aug-09 1:32
gothic_coder7-Aug-09 1:32 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder7-Aug-09 1:30
gothic_coder7-Aug-09 1:30 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder7-Aug-09 23:18
gothic_coder7-Aug-09 23:18 
GeneralRe: Reading Simplified Chinese String. Pin
gothic_coder8-Aug-09 2:36
gothic_coder8-Aug-09 2:36 
QuestionCMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
sashoalm6-Aug-09 21:14
sashoalm6-Aug-09 21:14 
AnswerRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
Adam Roderick J7-Aug-09 1:00
Adam Roderick J7-Aug-09 1:00 
GeneralRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? [modified] Pin
sashoalm7-Aug-09 1:41
sashoalm7-Aug-09 1:41 
GeneralRe: CMFCRibbonEdit - how to capture event when user edits it and presses enter? Pin
Adam Roderick J7-Aug-09 2:26
Adam Roderick J7-Aug-09 2:26 

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.