SHCopyKeyA.3w

Langue: en

Version: Jun 2009 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

SHCopyKeyA (SHLWAPI.@)

SYNOPSIS

DWORD SHCopyKeyA
 (
  HKEY   hKeySrc,
  LPCSTR lpszSrcSubKey,
  HKEY   hKeyDst,
  DWORD  dwReserved
 )

DESCRIPTION

Copy a key and its values/sub keys to another location.

PARAMS

hKeySrc [In] Source key to copy from.

lpszSrcSubKey [In] Sub key under hKeySrc, or NULL to use hKeySrc directly.

hKeyDst [In] Destination key.

dwReserved [In] Reserved, must be 0.

RETURNS

Success: ERROR_SUCCESS. The key is copied to the destination key.

Failure: A standard Windows(tm) error code.

NOTES

If hKeyDst is a key under hKeySrc, this function will misbehave (It will loop until out of stack, or the registry is full). This bug is present in Win32 also.

IMPLEMENTATION

Defined in "shlwapi.h".

Implemented in "dlls/shlwapi/reg.c".

Debug channel "shell".