Group: Cryptography Reference - Library: advapi32
Retrieves the first or next available cryptographic service providers (CSPs). Used in a loop, this function can retrieve in sequence all of the CSPs available on a computer.
CryptoAPI: Collection of Providers class
BOOL WINAPI CryptEnumProviders(
DWORD dwIndex,
DWORD* pdwReserved,
DWORD dwFlags,
DWORD* pdwProvType,
LPTSTR pszProvName,
DWORD* pcbProvName
);
DECLARE INTEGER CryptEnumProviders IN advapi32;
INTEGER dwIndex,;
INTEGER pdwReserved,;
INTEGER dwFlags,;
INTEGER @ pdwProvType,;
STRING @ pszProvName,;
INTEGER @ pcbProvName
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] Address of the DWORD value designating the type of the enumerated provider.
pszProvName [out] Pointer to a buffer that receives the data from the enumerated provider.
pcbProvName [in, out] Pointer to a DWORD value specifying the size, in bytes, of the buffer pointed to by the pszProvName parameter.
If the function succeeds, the return value is nonzero (TRUE).
Possible CSPs include Microsoft Base Cryptographic Provider version 1.0 and Microsoft Enhanced Cryptographic Provider version 1.0.