[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit '_crw_task' (#crwlib)

# TTask

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

## Declaration

Source position: _crw_task.pas line 206

`type TTask = class(TLatch)`
`protected`
`function CheckOk; override;`
`procedure ErrorFound(); override;`
`procedure ReadStreamToFifo();`
`procedure WriteFifoToStream();`
`procedure WriteFifoToStdInp;`
`procedure ReadStdOutToFifo;`
`procedure ReadStdErrToFifo;`
`function CanEdit;`
`public`
`constructor Create;`
`destructor Destroy; override;`
`procedure AfterConstruction; override;`
`procedure BeforeDestruction; override;`
`function Run;`
`function Running();`
`function Ctrl();`
`procedure Detach();`
`function Terminate();`
`function Encrypt();`
`function Decrypt();`
`function StdInpSync();`
`function StdOutSync();`
`function StdErrSync();`
`procedure ApplyEncoding();`
`function NeedEncoding;`
`procedure StdInpPipeFifoClear;`
`procedure StdOutPipeFifoClear;`
`procedure StdErrPipeFifoClear;`
`procedure Burn();`
`function Send();`
`function Recv();`
`function TxSend();`
`function RxRecv();`
`function ExRecv();`
`property Pid: TPid; [r]`
`property Tid: Integer; [r]`
`property Process: TProcess; [r]`
`property AppName: LongString; [rw]`
`property ExeName: LongString; [rw]`
`property CmdLine: LongString; [rw]`
`property CmdArgs: LongString; [rw]`
`property HomeDir: LongString; [rw]`
`property Account: LongString; [rw]`
`property CodePage: Integer; [rw]`
`property PollPeriod: Integer; [rw]`
`property RunTimeout: Integer; [rw]`
`property SyncTimeout: Integer; [rw]`
`property SendTimeout: Integer; [rw]`
`property Environment: LongString; [rw]`
`property StdInpPipeSize: Integer; [rw]`
`property StdInpPipeLimit: Integer; [rw]`
`property StdInpPipeFifoCount: Integer; [r]`
`property StdInpPipeFifoSpace: Integer; [r]`
`function StdInpPipeFifoPutText();`
`property StdInpPriority: TThreadPriority; [rw]`
`property StdOutPipeSize: Integer; [rw]`
`property StdOutPipeLimit: Integer; [rw]`
`property StdOutPipeFifoCount: Integer; [r]`
`property StdOutPipeFifoSpace: Integer; [r]`
`function StdOutPipeFifoGetText();`
`property StdOutPriority: TThreadPriority; [rw]`
`property StdErrPipeSize: Integer; [rw]`
`property StdErrPipeLimit: Integer; [rw]`
`property StdErrPipeFifoCount: Integer; [r]`
`property StdErrPipeFifoSpace: Integer; [r]`
`function StdErrPipeFifoGetText();`
`property StdErrPriority: TThreadPriority; [rw]`
`property ExitCode: Integer; [r]`
`property ExitStatus: Integer; [r]`
`property Display: Integer; [rw]`
`property ConsoleMode: Integer; [rw]`
`property Options: Integer; [rw]`
`property ThreadPriority: TThreadPriority; [rw]`
`property ProcessPriority: Integer; [rw]`
`property MainWnd: hWnd; [r]`
`property ConsoleWnd: hWnd; [r]`
`class function IsValidExeFile();`
`class function DetachedPidList;`
`class function AddDetachedPid();`
`class function DelDetachedPid();`
`class function PollDetachedPids();`
`class procedure LogNote();`
`LogNoteCommandPrefix: LongString;`
`end;`

## Inheritance

`TTask`
`TLatch`
`TMasterObject`
`TObject`