7.1 WFMCloseKey

HRESULT WFMCloseKey ( hKey )

Closes the specified key.

Parameters HKEY hKey

Handle to the currently open key that is to be closed.

Comments The hkey handle can not be used after it has been closed, because it will no longer be valid. Note that it is not valid to close the XFS root key (passing WFS_CFG_HKEY_XFS_ROOT as value for hkey parameter).

Error Codes If the function return is not WFS_SUCCESS, it is the following error condition:

WFS_ERR_CFG_INVALID_HKEY
The specified hKey parameter does not correspond to a currently open key, or it is the XFS root.