RegCloseKey Subroutine
Closes a key in the system registry. FactoryGlobals provides the Declare statement in GlobalSubroutines so you can use this Windows API call without declaring it in your procedures.
NOTE: For Crystal XI users, use the PrintReport subroutine instead of using the RegOpenKeyEx and RegCloseKeyEx subroutines. The PrintReport subroutine will do all of the registry entries for you.
Syntax
RegCloseKey (hKey)
Properties
The RegCloseKey subroutine syntax has this part:
Part |
Description |
hKey |
Long. The key to close. |
Return Value
Long. Zero on success. All other values indicate an error.
Remarks
RegCloseKey is a Windows API call.