Jump to content

How to CreateNamedPipe with FILE_CREATE_PIPE_INSTANCE access rights

Guest, which answer was the most helpful?

If any of these replies answered your question, please take a moment to click the 'Mark as solution' button on the post with the best answer.
Marking posts as the solution will help other community members find answers to their questions quickly. Thank you for your help!

Featured Replies

Posted

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

http://msdn2.microsoft.com/en-us/library/aa365600.aspx

 

If that doesn't point you in the right direction, you might have more

success asking at the MSDN forums:

 

http://forums.microsoft.com/msdn/default.aspx?siteid=1

 

 

 

--

Jane, not plain ) 64 bit enabled :-)

Batteries not included. Braincell on vacation -)

MVP Windows Shell/User

 

"kalpesh" <kalpeshgedia@gmail.com> wrote in message

news:1183547810.377506.166950@o11g2000prd.googlegroups.com...

>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

>

Re: How to CreateNamedPipe with FILE_CREATE_PIPE_INSTANCE access rights

 

On Jul 4, 4:47 pm, "Jane C" <janecol...@invalid.iinet.net.au> wrote:

> http://msdn2.microsoft.com/en-us/library/aa365600.aspx

>

> If that doesn't point you in the right direction, you might have more

> success asking at the MSDN forums:

>

> http://forums.microsoft.com/msdn/default.aspx?siteid=1

>

> --

> Jane, not plain ) 64 bit enabled :-)

> Batteries not included. Braincell on vacation -)

> MVP Windows Shell/User

>

> "kalpesh" <kalpeshge...@gmail.com> wrote in message

>

> news:1183547810.377506.166950@o11g2000prd.googlegroups.com...

>

>

>

> >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- Hide quoted text -

>

> - Show quoted text -

 

The link provide by you is not so much helpful to me give me more

help ....

Re: How to CreateNamedPipe with FILE_CREATE_PIPE_INSTANCE access rights

 

"kalpesh" <kalpeshgedia@gmail.com> wrote in message

news:1183612035.307722.118220@i38g2000prf.googlegroups.com...

> 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.

~~~~

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...