[Bug 297] implement PeekNamedPipe