IEnroll4::GetSupportedKeySpec method

[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

pdwKeySpec [out]

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 in Wincrypt.h):

  • AT_KEYEXCHANGE
  • AT_SIGNATURE.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Xenroll.h

Library

Uuid.lib

DLL

Xenroll.dll

IID

IID_IEnroll4 is defined as f8053fe5-78f4-448f-a0db-41d61b73446b

See also

IEnroll4

 

 

Show: