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

# CryptGetKeyParam(3w)

## NAME

**CryptGetKeyParam** (ADVAPI32.@)

## SYNOPSIS

BOOL CryptGetKeyParam\
  (\
   HCRYPTKEY *hKey*,\
   DWORD     *dwParam*,\
   BYTE\*     *pbData*,\
   DWORD\*    *pdwDataLen*,\
   DWORD     *dwFlags*\
  )

## DESCRIPTION

Retrieves data that controls the operations of a key.

## PARAMS

*hKey* **\[In\]**  Handle to they key in question.

*dwParam* **\[In\]**  Specifies query type.

*pbData* **\[Out\]**  Sequence of bytes to receive data.

*pdwDataLen* **\[In/Out\]**  Size of *pbData*.

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

## RETURNS

**Success:** **TRUE**

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

## NOTES

If *pbData* is **NULL**, *pdwDataLen* is set to the needed length of the buffer.

## IMPLEMENTATION

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

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

Debug channel **"crypt"**.
