Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 956 Bytes

TPJPipe-WriteHandle.md

File metadata and controls

27 lines (15 loc) · 956 Bytes

WriteHandle property

Project: I/O Utility Classes

Unit: PJPipe

Class: TPJPipe

Applies to: ~>1.0

property WriteHandle: THandle;

Description

This read only property provides access to the Windows handle used to write data to the pipe.

This handle can be passed to file writing routines that take a handle as a parameter, such as those provided in Delphi's SysUtils and Windows units. Alternatively, if you want to write to the pipe via a TStream object, create a THandleStream instance for the handle.

Remarks

Do not pass this handle to any Windows API function that may alter it (e.g. CloseHandle).

If you do need to close WriteHandle then use the CloseWriteHandle method. CloseWriteHandle closes the handle and sets it to 0.

WriteHandle should not be used when it is 0.