AddAccessAllowedAce
(1)
AddAccessDeniedAce
(1)
InitializeSecurityDescriptor
(1)
CreateNamedPipe
(1)
InitializeAcl
(1)
Specilist
(1)
DACL
(1)

Deny access to named pipes outside the machine (example C++ code)

Asked By Dorel Sturm
17-Nov-09 09:38 AM
Hi,

I have some named pipes used for inter process communication. I do not want that these pipes are accessible from outside. Microsoft
documenation says for CreateNamedPipe that I have to deny access to the pipe to the NETWORK ACE. I am not a specilist in poking
around with ACE, DACL etc.

I found that I need to play with these functions InitializeAcl, AddAccessAllowedAce, AddAccessDeniedAce,
InitializeSecurityDescriptor, and SetSecurityDescriptorDacl.

Any idea where I can find an example code in C/C++ for this?

Thanks for your help.

Dorel Sturm
Post Question To EggHeadCafe