JCL Help:IsHandleValid
JCL Help: IsHandleValid Function
Search in JCL Help
Search in all projects
Summary
Tests whether a handle is valid.
Pascal
function IsHandleValid(Handle: THandle): Boolean;
Parameters
Parameters | Description |
Handle: THandle | The handle to test for validity. |
Return Value
If the specified handle is valid the function returns True. If the specified handle is invalid the function returns False.
Description
The IsHandleValid determines whether a handle is valid. The handle can point to any kind of Win32 object such as a file, mutex or console screen buffer. Note that the result of this function is only an indication of whether the handle points to a valid object. Since handles are reused by Win32 it is possible that the handle actually points to a different object than you thought. More reason to always set handles to 0 or INVALID_HANDLE_VALUE immediately after you close it.
About
Unit
Donator
Marcel van Brakel
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