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

# CryptReleaseContext(3w)

## NAME

**CryptReleaseContext** (ADVAPI32.@)

## SYNOPSIS

BOOL CryptReleaseContext\
  (\
   HCRYPTPROV *hProv*,\
   ULONG\_PTR  *dwFlags*\
  )

## DESCRIPTION

Releases the handle of a **CSP**. Reference count is decreased.

## PARAMS

*hProv* **\[In\]**  Handle of a **CSP**.

*dwFlags* **\[In\]**  Reserved for future use and must be **NULL**.

## RETURNS

**Success:** **TRUE**

**Failure:** **FALSE**

## IMPLEMENTATION

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

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

Debug channel **"crypt"**.
