Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I place an icon in an menu Pin
Anonymous14-Nov-03 0:13
Anonymous14-Nov-03 0:13 
AnswerRe: How can I place an icon in an menu Pin
Simon.W14-Nov-03 0:28
Simon.W14-Nov-03 0:28 
GeneralRe: How can I place an icon in an menu Pin
SuperRon200316-Nov-03 19:32
SuperRon200316-Nov-03 19:32 
GeneralRe: How can I place an icon in an menu Pin
Simon.W16-Nov-03 20:11
Simon.W16-Nov-03 20:11 
GeneralRe: How can I place an icon in an menu Pin
SuperRon200317-Nov-03 22:09
SuperRon200317-Nov-03 22:09 
GeneralNamed Pipes access accross network Pin
Ceri14-Nov-03 0:01
Ceri14-Nov-03 0:01 
GeneralRe: Named Pipes access accross network Pin
Anand Paranjpe14-Nov-03 0:17
Anand Paranjpe14-Nov-03 0:17 
GeneralRe: Named Pipes access accross network Pin
Ceri14-Nov-03 0:40
Ceri14-Nov-03 0:40 
No, that is incorrect. That's true if you specify NULL for the lpSecurityAttributes to CreateNamedPipe. I am creating a security attribute structure but the DACL for the security descriptor is NULL - see below

<br />
<br />
<br />
SECURITY_ATTRIBUTES saPipeSecurity;<br />
PSECURITY_DESCRIPTOR pPipeSD = NULL;<br />
<br />
// security inits<br />
memset ( ( VOID *) &saPipeSecurity, 0, sizeof ( SECURITY_ATTRIBUTES) );<br />
<br />
// alloc & init SD<br />
if ( ! ( pPipeSD = ( PSECURITY_DESCRIPTOR) <br />
( malloc ( SECURITY_DESCRIPTOR_MIN_LENGTH)) ) )<br />
return FALSE;<br />
<br />
if ( ! InitializeSecurityDescriptor ( pPipeSD, <br />
SECURITY_DESCRIPTOR_REVISION) )<br />
return FALSE;<br />
<br />
// set NULL DACL on the SD<br />
if ( ! SetSecurityDescriptorDacl ( pPipeSD, TRUE, ( PACL) NULL, FALSE) )<br />
return FALSE;<br />
<br />
// now set up the security attributes<br />
saPipeSecurity.nLength = sizeof ( SECURITY_ATTRIBUTES);<br />
saPipeSecurity.bInheritHandle = TRUE; <br />
saPipeSecurity.lpSecurityDescriptor = pPipeSD;<br />
<br />
<br />
HANDLE hPipe = CreateNamedPipe("\\\\.\\pipe\\PipeTest",PIPE_ACCESS_INBOUND ,PIPE_TYPE_BYTE,PIPE_UNLIMITED_INSTANCES,4086,4086,20000,&saPipeSecurity);<br />
<br />

GeneralSearch in File Pin
Rage13-Nov-03 23:50
professionalRage13-Nov-03 23:50 
GeneralRe: Search in File Pin
valikac14-Nov-03 5:19
valikac14-Nov-03 5:19 
QuestionTAPI 3 COM based help ??? Pin
Ghulam Mujtaba13-Nov-03 23:09
Ghulam Mujtaba13-Nov-03 23:09 
AnswerRe: TAPI 3 COM based help ??? Pin
Michael P Butler13-Nov-03 23:41
Michael P Butler13-Nov-03 23:41 
GeneralProblem Installing Platform SDK Pin
Arjan Schouten13-Nov-03 23:01
Arjan Schouten13-Nov-03 23:01 
GeneralRe: Problem Installing Platform SDK Pin
Simon.W14-Nov-03 0:35
Simon.W14-Nov-03 0:35 
GeneralRe: Problem Installing Platform SDK Pin
Arjan Schouten14-Nov-03 1:01
Arjan Schouten14-Nov-03 1:01 
GeneralRe: Problem Installing Platform SDK Pin
Steve S14-Nov-03 5:33
Steve S14-Nov-03 5:33 
Questionvoice codec support for modem ??? Pin
Ghulam Mujtaba13-Nov-03 23:00
Ghulam Mujtaba13-Nov-03 23:00 
AnswerRe: voice codec support for modem ??? Pin
Alexander M.,14-Nov-03 22:46
Alexander M.,14-Nov-03 22:46 
Questionhow to convert files to BMP format (Win32) Pin
harsh91113-Nov-03 22:00
harsh91113-Nov-03 22:00 
AnswerRe: how to convert files to BMP format (Win32) Pin
Prakash Nadar13-Nov-03 23:09
Prakash Nadar13-Nov-03 23:09 
GeneralRe: how to convert files to BMP format (Win32) Pin
harsh91113-Nov-03 23:37
harsh91113-Nov-03 23:37 
GeneralRe: how to convert files to BMP format (Win32) Pin
Ceri14-Nov-03 0:06
Ceri14-Nov-03 0:06 
GeneralRe: how to convert files to BMP format (Win32) Pin
Prakash Nadar14-Nov-03 0:22
Prakash Nadar14-Nov-03 0:22 
GeneralRe: how to convert files to BMP format (Win32) Pin
Anthony_Yio14-Nov-03 1:09
Anthony_Yio14-Nov-03 1:09 
QuestionHow to write a text in Bitmap Pin
super13-Nov-03 20:33
professionalsuper13-Nov-03 20:33 

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.