#define INCL_DOSNMPIPES
USHORT rc = DosPeekNmPipe(Handle, Buffer, BufferLen, BytesRead,
BytesAvail, PipeState);
HPIPE Handle; /* Pipe handle */
PBYTE Buffer; /* Address of user buffer */
USHORT BufferLen; /* Buffer length */
PUSHORT BytesRead; /* Bytes read (returned) */
PUSHORT BytesAvail; /* Bytes available (returned) */
PUSHORT PipeState; /* Pipe state (returned) */
USHORT rc; /* return code */