Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 1.11 KB

TPJCustomConsoleApp-StdIn.md

File metadata and controls

31 lines (17 loc) · 1.11 KB

StdIn property

Project: Console Application Runner Classes

Unit: PJConsoleApp

Classes: TPJCustomConsoleApp, TPJConsoleApp

Applies to: ~>3.0

property StdIn: THandle;

Description

This property is used to optionally redirect a console application's standard input.

If StdIn is set to 0 no redirection takes place.

Setting the property to a valid inheritable handles causes all input that the console application reads from standard input to actually be read from the specified handle.

The default property value is 0.

Remarks

When redirecting, the input handle can be attached to any object that is open for reading. Normally this will be a file or a pipe.

The I/O Utility Classes library project has classes that are designed to help with opening pipes and files with inheritable handles.

The property is public in TPJConsoleApp and protected in TPJCustomConsoleApp.