IEnroll2::EnumAlgs method (xenroll.h)

[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]

The EnumAlgs method retrieves the IDs of cryptographic algorithms in a given algorithm class that are supported by the current cryptographic service provider (CSP). This method was first defined in the IEnroll2 interface.

Syntax

HRESULT EnumAlgs(
  [in]  LONG dwIndex,
  [in]  LONG algClass,
  [out] LONG *pdwAlgID
);

Parameters

[in] dwIndex

Specifies the ordinal position of the algorithm whose ID will be retrieved. Specify zero for the first algorithm.

[in] algClass

A cryptographic algorithm class. The IDs returned by this method will be in the specified class. Specify one of the following:

  • ALG_CLASS_HASH
  • ALG_CLASS_KEY_EXCHANGE
  • ALG_CLASS_MSG_ENCRYPT
  • ALG_CLASS_DATA_ENCRYPT
  • ALG_CLASS_SIGNATURE

[out] pdwAlgID

A pointer to LONG which receives a cryptographic algorithm ID which is supported by the current CSP.

Return value

The return value is an HRESULT. A value of S_OK indicates success. When there are no more algorithms to enumerate, the value ERROR_NO_MORE_ITEMS is returned.

Remarks

For algorithm ID and class constants used by this method, see Wincrypt.h.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header xenroll.h
Library Uuid.lib
DLL Xenroll.dll

See also

ALG_ID

IEnroll2