PeekNamedPipe (kernel32)
Last changed: anonymous

.
Summary

C# Signature:

[DllImport("kernel32.dll")]
static extern bool PeekNamedPipe(IntPtr hNamedPipe, IntPtr lpBuffer,
   uint nBufferSize, IntPtr lpBytesRead, IntPtr lpTotalBytesAvail,
   IntPtr lpBytesLeftThisMessage);

or

[DllImport("kernel32.dll", EntryPoint="PeekNamedPipe", SetLastError=true)]
static extern bool PeekNamedPipe( IntPtr handle,
byte[] buffer, uint nBufferSize, ref uint bytesRead,
ref uint bytesAvail, ref uint BytesLeftThisMessage);

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation