Function Reference


_NamedPipes_SetNamedPipeHandleState

Sets the read mode and the blocking mode of the specified named pipe

#include <NamedPipes.au3>
_NamedPipes_SetNamedPipeHandleState ( $hNamedPipe, $iRead, $iWait [, $iBytes = 0 [, $iTimeOut = 0]] )

Parameters

$hNamedPipe Handle to the named pipe instance
$iRead Pipe read mode. Must be one of the following:
    0 - Data is read from the pipe as a stream of bytes
    1 - Data is read from the pipe as a stream of messages
$iWait Pipe wait mode. Must be one of the following:
    0 - Blocking mode is enabled
    1 - Nonblocking mode is enabled
$iBytes [optional] Maximum number of bytes collected on the client computer before transmission to the server
$iTimeout [optional] Maximum time, in milliseconds, that can pass before a remote named pipe transfers information

Return Value

Success: True.
Failure: False.

Related

_NamedPipes_GetNamedPipeHandleState

See Also

Search SetNamedPipeHandleState in MSDN Library.