System.Classes.THandleStream.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(AHandle: THandle);

C++

__fastcall THandleStream(NativeUInt AHandle);

Properties

Type Visibility Source Unit Parent
constructor public
System.Classes.pas
System.Classes.hpp
System.Classes THandleStream

Description

Creates an instance of THandleStream.

Call Create to instantiate a THandleStream for a given handle.

The handle must be obtained by opening or creating the resource in the appropriate mode. For example, to create a handle stream for reading from a file, obtain the file handle by opening the file with an fmOpenRead or fmOpenReadWrite mode. To create a handle stream for writing to a file, obtain the file handle by opening the file with an fmOpenWrite or fmOpenReadWrite mode.

See Also