SHCopyKeyA(3w)

SHCopyKeyA3w

Usage

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

Overview

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

Declared in "shlwapi.h".

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

Debug channel "shell".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.