Group: Cryptography Reference - Library: advapi32
Retrieves the first or next types of cryptographic service provider (CSP) supported on the computer. Used in a loop, this function retrieves in sequence all of the CSP types available on a computer.
CryptoAPI: Collection of Providers class
BOOL WINAPI CryptEnumProviderTypes(
DWORD dwIndex,
DWORD* pdwReserved,
DWORD dwFlags,
DWORD* pdwProvType,
LPTSTR pszTypeName,
DWORD* pcbTypeName
);
DECLARE INTEGER CryptEnumProviderTypes IN advapi32;
INTEGER dwIndex,;
INTEGER pdwReserved,;
INTEGER dwFlags,;
INTEGER @ pdwProvType,;
STRING @ pszTypeName,;
INTEGER @ pcbTypeName
dwIndex [in] Index of the next provider type 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 enumerated provider type.
pszTypeName [out] Pointer to a buffer that receives the data from the enumerated provider type.
pcbTypeName [in, out] Pointer to a DWORD value specifying the size, in bytes, of the buffer pointed to by the pszTypeName parameter.
If the function succeeds, the return value is nonzero (TRUE).