How to CreateNamedPipe with FILE_CREATE_PIPE_INSTANCE access rights

  • Thread starter Thread starter kalpesh
  • Start date Start date
K

kalpesh

i want to create a named pipe with FILE_CREATE_PIPE_INSTANCE access
rights.
for that i have to create one security discriptor but i dont which
type of secirity discriptor i use to cerate namaed pipe with
FILE_CREATE_PIPE_INSTANCE rights.

while creating security discriptor i dont want to use
ConvertStringSecurityDescriptorToSecurityDescriptor funciton because
i am going to build this code in DDK and DDK not support this
function.

so give me suggestion about security discriptor for
FILE_CREATE_PIPE_INSTANCE access rights..

Thanks in advance..
Kalpesh
 
kalpesh said:
The link provide by you is not so much helpful to me give me more
help ....

First you call CreateNamedPipe, to create the pipe.

Then you call SetSecurityInfo to change the Security Descriptor on the pipe.

Then your only issue is how to create the DACL for the Security Descriptor -
you almost certainly want to call GetSecurityInfo, to find out what the
existing DACL is, and modify it, rather than create one from scratch.

The SetEntriesInAcl function can then be used to create a new ACL with extra
access entries on top of what was originally in the DACL - example code is
at http://msdn2.microsoft.com/en-us/library/aa379283.aspx

Alun.
~~~~
 
Back
Top