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

# RSAENH\_CPAcquireContext(3w)

## NAME

**RSAENH\_CPAcquireContext** (RSAENH.@)

## SYNOPSIS

BOOL RSAENH\_CPAcquireContext\
  (\
   HCRYPTPROV\*      *phProv*,\
   LPSTR            *pszContainer*,\
   DWORD            *dwFlags*,\
   PVTableProvStruc *pVTable*\
  )

## DESCRIPTION

Acquire a handle to the key container specified by *pszContainer*.

## PARAMS

*phProv* **\[Out\]**  Pointer to the location the acquired handle will be written to.

*pszContainer* **\[In\]**  Name of the desired key container. See Notes.

*dwFlags* **\[In\]**  Flags. See Notes.

*pVTable* **\[In\]**  Pointer to a PVTableProvStruct containing callbacks.

## RETURNS

**Success:** **TRUE**

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

## NOTES

If *pszContainer* is **NULL** or points to a zero length string the user's login name will be used as the key container name.

If the **CRYPT\_NEW\_KEYSET** flag is set in *dwFlags* a new keyset will be created. If a keyset with the given name already exists, the function fails and sets last error to **NTE\_EXISTS**. If **CRYPT\_NEW\_KEYSET** is not set and the specified key container does not exist, function fails and sets last error to **NTE\_BAD\_KEYSET**.

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