Group: Remote Application Programming (RAPI) - Library: rapi
Pocket PC: custom RAPI class for operating with the System Registry
LONG CeRegCloseKey(
HKEY hKey
);
DECLARE INTEGER CeRegCloseKey IN rapi;
INTEGER hKey
hKey [in] Handle to the open key to close.
ERROR_SUCCESS (0) indicates success.
The handle for a specified key should not be used after it has been closed, because it will no longer be valid. Key handles should not be left open any longer than necessary.
The CeRegCloseKey function always writes information to the registry before returning, eliminating the need to flush keys in the Windows CE registry.
See also: CeRegOpenKeyEx function.