IEnroll2::GetSupportedKeySpec method (xenroll.h)

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

The GetSupportedKeySpec method retrieves information regarding the current cryptographic service provider (CSP) support for signature and/or exchange operations. This method was first defined in the IEnroll2 interface.

The values retrieved by this method are dependent upon the current CSP.

Syntax

HRESULT GetSupportedKeySpec(
  [out] LONG *pdwKeySpec
);

Parameters

[out] pdwKeySpec

A pointer to a LONG that receives a bit flag indicating whether the current CSP supports exchange and/or signature keys.

Return value

The return value is an HRESULT. A value of S_OK indicates success. If a CSP does not support this method, an error is returned.

Remarks

Call this method to determine whether the current CSP supports exchange keys, signature keys, or both. The pdwKeySpec parameter will contain one or more of the following constants (defined in Wincrypt.h):

  • AT_KEYEXCHANGE
  • AT_SIGNATURE.

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

IEnroll2