Share via


NKRegCloseKey

Other versions of this page are also available for the following:

Windows Mobile Not SupportedWindows Embedded CE Supported

8/27/2008

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

ERROR_SUCCESS indicates success.

A nonzero error code defined in Winerror.h indicates failure.

Remarks

This function is only available for use by the OAL.

Requirements

Header pkfuncs.h
Library coredll.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

NKRegCreateKeyEx
NKRegOpenKeyEx
NKRegQueryValueEx
NKRegSetValueEx