IEnroll4::HashAlgID property

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

The HashAlgID property sets or retrieves the hash algorithm used when signing a PKCS #10 certificate request.

This property was first introduced in the IEnroll2 interface.

This property is read/write.

Syntax


HRESULT put_HashAlgID(
  [in]  LONG hashAlgID
);

HRESULT get_HashAlgID(
  [out] LONG *phashAlgID
);

Property value

LONG value that specifies the ID of the hash algorithm.

Error codes

If the property access methods put_HashAlgID and get_HashAlgID succeed, they return S_OK.

Any other HRESULT value indicates that the call failed.

Remarks

The values for this property are hash algorithm IDs, such as those returned by the EnumAlgs method. If both the HashAlgID and HashAlgorithmWStr properties are set, whichever has been updated most recently determines the hash algorithm used to sign the PKCS #10 request.

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
ALG_ID

 

 

Show: