Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.07 KB

TPJFileHandle.md

File metadata and controls

31 lines (18 loc) · 1.07 KB

TPJFileHandle class

Project: I/O Utility Classes

Unit: PJFileHandle

Applies to: ~>1.0

Description

This helper class can create or open files in various access and sharing modes with specified security and provide access to the file handle.

The class was designed with the sole purpose of making it easier to obtain inheritable file handles for use elsewhere. As a result the class provides no methods of its own for accessing the file.

If there is a need to read or write the file you can either create a THandleStream using the handle or you can use pass the handle to suitable handle file access routines from Delphi's SysUtils and Windows units.

Methods

Method Description
Create Overloaded constructors. Each opens or creates a file and records its handle.

Properties

Property Description
Handle Handle used to access file.

Events

TPJFileHandle exposes no events.