phCurrentKey - cRegistry
The Windows handle of the Key
Type: Property
Access: Read/Write
Data Type: Handle
Parameters: None
Syntax
Property Handle phCurrentKey
| Access Type | Syntax |
|---|---|
| Read Access: | Get phCurrentKey to HandleVariable |
| Write Access: | Set phCurrentKey to HandleVariable/Value |
Description
Whenever you open or create a Key, Windows assigns it a unique handle that is used for low-level access to the Windows API. You can use this handle if you wish to make any low-level calls yourself.
If phCurrentKey is zero, then you know that no Key is open; otherwise, a Key is open and this property contains its Windows-assigned handle.