JCL Help:TJclFileMapping.FileHandle
JCL Help: TJclFileMapping.FileHandle Property
Search in JCL Help
Search in all projects
Summary
Handle of the underlying file.
Pascal
public property FileHandle: THandle;
Description
Copy of the handle passed to the constructor. Mostly for your convenience, the class does not actually use the handle. However, it is copied using DuplicateHandle and closed on destruction. As such, you can use it as a storage place for the filehandle in case you need it later. Note that you are not supposed to manipulate a file both through a filemapping and the file manipulation routines since the operating system can no longer guarantee that the two remain coherent. If you must use the handle after the TJclFileMapping class has been destroyed then you must copy it using DuplicateHandle. Note that if you decide to use the Handle as such you are still required to close the original handle using CloseHandle!
About
Donator
Wim De Cleen
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page