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

# CryptAcquireContextW(3w)

## NAME

**CryptAcquireContextW** (ADVAPI32.@)

## SYNOPSIS

BOOL CryptAcquireContextW\
  (\
   HCRYPTPROV\* *phProv*,\
   LPCWSTR     *pszContainer*,\
   LPCWSTR     *pszProvider*,\
   DWORD       *dwProvType*,\
   DWORD       *dwFlags*\
  )

## DESCRIPTION

Acquire a crypto provider context handle.

## PARAMS

*phProv* **\[Out\]**  Pointer to **HCRYPTPROV** for the output.

*pszContainer* **\[In\]**  Key Container Name.

*pszProvider* **\[In\]**  Cryptographic Service Provider Name.

*dwProvType* **\[In\]**  Crypto provider type to get a handle.

*dwFlags* **\[In\]**  flags for the operation.

## RETURNS

**TRUE** on success, **FALSE** on failure.

## IMPLEMENTATION

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

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

Debug channel **"crypt"**.
