SysPipeWindowsPeek (FUN)ΒΆ
FUNCTION SysPipeWindowsPeek : RTS_IEC_RESULT
Read without removing the contents of a pipe. 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.
- InOut:
Scope
Name
Type
Comment
Return
SysPipeWindowsPeekRTS_IEC_RESULT- Error code:
ERR_OK: Success
ERR_NET_NOTCONNECTED: ERROR_PIPE_NOT_CONNECTED
ERR_END_OF_OBJECT: ERROR_BROKEN_PIPE
Input
hPipeRTS_IEC_HANDLEHandle to a SysPipeWindows instance
pbyBufferPOINTER TO BYTE
A pointer to a buffer that receives data read from the pipe. This parameter can be NULL if no data is to be read.
uxSize__UXINTThe size of the buffer specified by the lpBuffer parameter, in bytes. This parameter is ignored if lpBuffer is NULL.
puxBytesReadPOINTER TO __UXINT
A pointer to a variable that receives the number of bytes read from the pipe. This parameter can be NULL if no data is to be read
puxTotalBytesAvailPOINTER TO __UXINT
A pointer to a variable that receives the total number of bytes available to be read from the pipe. This parameter can be NULL if no data is to be read.
puxBytesLeftThisMessagePOINTER TO __UXINT
A pointer to a variable that receives the number OF bytes remaining in this message. This parameter will be zero for byte-type named pipes or for anonymous pipes. This parameter can be NULL if no data is to be read.