IEnroll4::KeySpec property

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

The KeySpec property sets or retrieves the type of key generated.

Valid values are determined by the cryptographic service provider (CSP) in use. This property was first defined in the IEnroll interface.

This property is read/write.

Syntax


HRESULT put_KeySpec(
  [in]   LONG KeySpec
);

HRESULT get_KeySpec(
  [out]  LONG *pKeySpec
);

Property value

LONG value assigned to the KeySpec property. The value of this property depends on the CSP in use. For more information, see Remarks.

Error codes

If the property access methods put_KeySpec and get_KeySpec succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

Remarks

For the Microsoft Base Cryptographic Provider, the KeySpec property has a value of AT_KEYEXCHANGE for exchange keys, or AT_SIGNATURE for signature keys. The default is AT_SIGNATURE.

For information about the other Microsoft CSPs, see Cryptographic Service Providers in the CryptoAPI 2.0 documentation.

For information about other CSPs, see the documentation provided with the CSP.

The KeySpec property affects the behavior of the following methods:

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft