void __fastcall CloseKey();
Writes the current key to the registry and closes the key.
Call CloseKey to write the current key to the registry and close the key. An application should not keep keys open any longer than necessary. Many TRegistry methods routinely call CloseKey after reading from or writing to the registry. Calling CloseKey when there is no current key has no effect.
Note: When an application closes a key, the key is written to the registry. The LazyWrite property determines how the write takes place.