bool get_named_pipe_handle_state(handle pipe, unsigned* state, unsigned* instances, unsigned* collection_maximum, unsigned* collection_timeout, character* user, unsigned user_name_size)
This function obtains state information for a named pipe.
The handle of the pipe about which information is sought. The caller must have generic read access to the pipe.
A pointer to a variable indicating the current state of the handle. null may be specified when this information is not needed. Either of the following values may result.
|The pipe is in nonblocking mode. If this flag is not present, the pipe is in blocking mode.
|The pipe is in message-read mode. If this flag is not present, the pipe is in byte-read mode.
A pointer to a variable that receives the number of pipe instances currently in existence. When this information is not required, null may be specified.
A pointer to a variable that receives the maximum number of bytes collected on the client computer prior to transmission to the server. This parameter must be null when the pipe is the server end of a named pipe or when the client and server processes are on the same machine. If null is specified, the collection count is not queried.
A pointer to a variable that receives the time (in milliseconds) allowed to elapse before a remote named pipe transfers information over the network. This parameter must be null when the pipe is the server end of a named pipe or when the client and server processes are on the same machine. If null is specified, the value is not queried.
A pointer to a buffer that receives the user name string of the client application. This parameter must be null if the instance is at the client end of a named pipe. When this information is not required, the parameter may be set to null.
The size (in characters) of the buffer provided by the previous parameter. This parameter is ignored when the previous parameter is null.
|The function succeeded.
|The call failed.