Closing a Registry Key
A version of this page is also available for
4/8/2010
After you are done with a registry key, close the key by calling the RegCloseKey function. Calling RegCloseKey instructs Windows Mobile to flush any unwritten data to the key before closing it.