ICryptAttribute::InitializeFromValues method (certenroll.h)

The InitializeFromValues method initializes a cryptographic attribute by using an IX509Attributes object.

Syntax

HRESULT InitializeFromValues(
  [in] IX509Attributes *pAttributes
);

Parameters

[in] pAttributes

Pointer to an IX509Attributes interface that contains the attribute collection.

Return value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Remarks

The InitializeFromValues method uses the first IX509Attribute object in the collection.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header certenroll.h
DLL CertEnroll.dll

See also

ICryptAttribute

ICryptAttributes

IX509Attribute

IX509Attributes