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
 
Back
Top