Function Reference


Closes a handle to the specified registry key

#include <WinAPIReg.au3>
_WinAPI_RegCloseKey ( $hKey [, $bFlush = False] )


$hKey Handle to the open key to be closed. The handle must have been opened by the _WinAPI_RegCreateKey()
or _WinAPI_RegOpenKey() function.
$bFlush [optional] Specifies whether writes all the attributes of the specified registry key into the registry, valid values:
    True - Write changes to disk before close the handle.
    False - Don't write (Default).

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the system error code.



See Also

Search RegCloseKey in MSDN Library.