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

# CryptContextAddRef(3w)

## NAME

**CryptContextAddRef** (ADVAPI32.@)

## SYNOPSIS

BOOL CryptContextAddRef\
  (\
   HCRYPTPROV *hProv*,\
   DWORD\*     *pdwReserved*,\
   DWORD      *dwFlags*\
  )

## DESCRIPTION

Increases reference count of a cryptographic service provider handle by one.

## PARAMS

*hProv* **\[In\]**  Handle to the **CSP** whose reference is being incremented.

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

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