Closing a Registry Key (Windows Embedded CE 6.0)
1/6/2010
After you are done with a registry key, close the key by calling the RegCloseKey function. Calling RegCloseKey instructs Windows Embedded CE to flush any unwritten data to the key before closing it.