ICspInformations::GetHashAlgorithms method (certenroll.h)

The GetHashAlgorithms method retrieves the collection of hash algorithms supported by a provider.

Syntax

HRESULT GetHashAlgorithms(
  [in, optional] ICspInformation *pCspInformation,
  [out]          IObjectIds      **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 hash algorithms supported by all CSPs and CNG providers.

[out] ppValue

Address of a pointer to an IObjectIds 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