System.Classes.THandleStream.Create
Delphi
constructor Create(AHandle: THandle);
C++
__fastcall THandleStream(Winapi::Windows::THandle 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.