---
name: "RSAENH_CPDuplicateKey"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/RSAENH_CPDuplicateKey"
---

# RSAENH\_CPDuplicateKey(3w)

## NAME

**RSAENH\_CPDuplicateKey** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPDuplicateKey\
  (\
   HCRYPTPROV *hUID*,\
   HCRYPTKEY  *hKey*,\
   DWORD\*     *pdwReserved*,\
   DWORD      *dwFlags*,\
   HCRYPTKEY\* *phKey*\
  )

## DESCRIPTION

Clones a key object including its current state.

## PARAMS

*hUID* **\[In\]**  Handle to the key container the hash belongs to.

*hKey* **\[In\]**  Handle to the key object to be cloned.

*pdwReserved* **\[In\]**  Reserved. Must be **NULL**.

*dwFlags* **\[In\]**  No flags are currently defined. Must be **0.**

phHash **\[Out\]**  Handle to the cloned key object.

## RETURNS

**Success:** **TRUE**.

**Failure:** **FALSE**.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/rsaenh/rsaenh.c"**.

Debug channel **"crypt"**.
