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

# RSAENH\_CPDestroyKey(3w)

## NAME

**RSAENH\_CPDestroyKey** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPDestroyKey\
  (\
   HCRYPTPROV *hProv*,\
   HCRYPTKEY  *hKey*\
  )

## DESCRIPTION

Releases the handle to a key object. The object is destroyed if its reference count reaches zero.

## PARAMS

*hProv* **\[In\]**  Handle to the key container to which the key object belongs.

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

## 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"**.
