Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The InitializeFromValue method initializes the object from a string that contains a dotted decimal object identifier (OID). This method is web enabled.
Syntax
HRESULT InitializeFromValue(
[in] BSTR strValue
);
Parameters
[in] strValue
A BSTR variable that contains the dotted decimal representation of the ASN.1 object identifier. For example, the value 1.2.840.10045.4.1. represents the iso(1)member-body(2)us(840)10045 signatures(4)sha1(1) object identifier.
Return value
If the function succeeds, the function returns S_OK.
If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following table. For a list of common error codes, see Common HRESULT Values.
Return code/value | Description |
---|---|
|
The OID information could not be found. |
|
The algorithm name is not recognized. |
|
The object is already initialized. |
Remarks
You can call the following properties to retrieve information about an initialized IObjectId object:
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 |