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

# CryptDestroyKey(3w)

## NAME

**CryptDestroyKey** (ADVAPI32.@)

## SYNOPSIS

BOOL CryptDestroyKey\
  (\
   HCRYPTKEY *hKey*\
  )

## DESCRIPTION

Releases the handle referenced by *hKey*.

## PARAMS

*hKey* **\[In\]**  Handle of the key to be destroyed.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

Declared in **"wincrypt.h"**.

Implemented in **"dlls/advapi32/crypt.c"**.

Debug channel **"crypt"**.
