ICspInformations::GetEncryptionCspAlgorithms method (certenroll.h)

The GetEncryptionCspAlgorithms method retrieves the collection of encryption algorithms supported by a provider.

Syntax

HRESULT GetEncryptionCspAlgorithms(
  [in, optional] ICspInformation *pCspInformation,
  [out]          ICspAlgorithms  **ppValue
);

Parameters

[in, optional] pCspInformation

Pointer to an ICspInformation interface that represents the provider. This can be a legacy cryptographic service provider (CSP), a Cryptography API: Next Generation (CNG) provider, or NULL. If you specify NULL, this method returns the collection of all encryption algorithms supported by all CSPs and CNG providers.

[out] ppValue

Address of a variable that receives a pointer to an ICspAlgorithms interface that represents the collection.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

ICspInformation

ICspInformations