Partager via


NKRegCloseKey (Compact 2013)

10/16/2014

This function releases the handle of the specified key.

Syntax

LONG NKRegCloseKey(
  HKEY hKey
);

Parameters

  • hKey
    [in] Handle to the open key to close.

Return Value

The following table shows the possible return values.

Value

Description

ERROR_SUCCESS

Success.

ERROR_NOT_READY

Registry is not ready.

The function can return other standard error codes defined in Winerror.h, as appropriate.

Remarks

This function is only available for use by the OAL. The pfnRegFlushKey member of NKGLOBAL points to this function.

Requirements

Header

pkfuncs.h

Library

coredll.lib

See Also

Reference

Kernel Functions Available to the OAL
NKRegCreateKeyExW
NKRegOpenKeyExW
NKRegQueryValueExW
NKRegSetValueExW