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

# CryptEnumProviderTypesW(3w)

## NAME

**CryptEnumProviderTypesW** (ADVAPI32.@)

## SYNOPSIS

BOOL CryptEnumProviderTypesW\
  (\
   DWORD  *dwIndex*,\
   DWORD\* *pdwReserved*,\
   DWORD  *dwFlags*,\
   DWORD\* *pdwProvType*,\
   LPWSTR *pszTypeName*,\
   DWORD\* *pcbTypeName*\
  )

## DESCRIPTION

Retrieves the next type of **CSP** supported.

## PARAMS

*dwIndex* **\[In\]**  Index of the next provider to be enumerated.

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

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

*pdwProvType* **\[Out\]**  **DWORD** designating the type of the provider.

*pszTypeName* **\[Out\]**  Buffer that receives data from the provider type.

*pcbTypeName* **\[In/Out\]**  Specifies the size of *pszTypeName*. Contains the number of bytes stored in the buffer on return.

## RETURNS

**Success:** **TRUE**

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

## NOTES

If *pszTypeName* is **NULL**, CryptEnumProviderTypesW sets the size of the name for memory allocation purposes.

## IMPLEMENTATION

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

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

Debug channel **"crypt"**.
