PeekNamedPipe function kernel32
Copies data from a named or anonymous pipe into a buffer without removing it from the pipe. It also returns information about data in the pipe.
BOOL PeekNamedPipe(
HANDLE hNamedPipe,
LPVOID lpBuffer,
DWORD nBufferSize,
LPDWORD lpBytesRead,
LPDWORD lpTotalBytesAvail,
LPDWORD lpBytesLeftThisMessage);
Implementation
int PeekNamedPipe(
int hNamedPipe,
Pointer lpBuffer,
int nBufferSize,
Pointer<Uint32> lpBytesRead,
Pointer<Uint32> lpTotalBytesAvail,
Pointer<Uint32> lpBytesLeftThisMessage) =>
_PeekNamedPipe(hNamedPipe, lpBuffer, nBufferSize, lpBytesRead,
lpTotalBytesAvail, lpBytesLeftThisMessage);