[Overview][Constants][Classes][Procedures and functions] Reference for unit 'Pipes' (#fcl)

CreatePipeHandles

Function to create a set of pipe handles

Declaration

Source position: pipes.pp line 46

function CreatePipeHandles(

  var Inhandle: LongInt;

  var OutHandle: LongInt

):Boolean;

Arguments

Inhandle

  

File handle for reading end of the pipe

OutHandle

  

File handle for writing end of the pipe

Function result

Trueif the call was succesul, Falseif not.

Description

CreatePipeHandlesprovides an OS-independent way to create a set of pipe filehandles. These handles are inheritable to child processes. The reading end of the pipe is returned in InHandle, the writing end in OutHandle.

Errors

On error, Falseis returned.

See also

CreatePipeStreams

  

Create a pair of pipe stream.