The REMOVE_PIPE
function deletes an explicit private or explicit public pipe.
Use the REMOVE_PIPE
function to delete explicitly created pipes, that is, pipes created with the CREATE_PIPE
function.
Parameters
pipename
Name of the pipe.
status
Status code returned by the operation. A status code of 0
is returned even if the named pipe is nonexistent.
Examples
Two messages are sent on a pipe:
Receive the first message and unpack it:
Remove the pipe:
Try to retrieve the next message. The RECEIVE_MESSAGE
call returns status code 1
indicating it timed out because the pipe was deleted.