Reference

CryptEnumProvidersW(3w)

NAME

CryptEnumProvidersW (ADVAPI32.@)

SYNOPSIS

BOOL CryptEnumProvidersW
(
DWORD dwIndex,
DWORD* pdwReserved,
DWORD dwFlags,
DWORD* pdwProvType,
LPWSTR pszProvName,
DWORD* pcbProvName
)

DESCRIPTION

Returns the next available CSP.

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.

pszProvName [Out] Buffer that receives data from the provider.

pcbProvName [In/Out] Specifies the size of pszProvName. Contains the number of bytes stored in the buffer on return.

RETURNS

Success: TRUE

Failure: FALSE.

NOTES

If pszProvName is NULL, CryptEnumProvidersW sets the size of the name for memory allocation purposes.

IMPLEMENTATION

Declared in "wincrypt.h".

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

Debug channel "crypt".

History