geting a Named Pipe under DotNet

  • Thread starter Thread starter Ulrich Kotzolt
  • Start date Start date
U

Ulrich Kotzolt

someone know how to get a named pipe in the framework, i think i will
again go through p-invoke, right ?
 
Unmanaged calls

Should be something like this:

[DllImport("kernel32", EntryPoint="CallNamedPipe", CharSet=CharSet.Auto)]
private static extern bool CallNamedPipe(string lpNamedPipeName,
[MarshalAs(UnmanagedType.AsAny)] object lpInBuffer, int nInBufferSize,
[MarshalAs(UnmanagedType.AsAny)] object lpOutBuffer, int nOutBufferSize,
[In, Out] int[] lpBytesRead, int nTimeOut);

Gabriel Lozano-Morán
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top