Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IX509EnrollmentWebClassFactory::CreateObject method (certenroll.h)
The CreateObject method can be used to create an object in the user context on a webpage.
Syntax
HRESULT CreateObject(
[in] BSTR strProgID,
[out] IUnknown **ppIUnknown
);
Parameters
[in] strProgID
A BSTR variable that contains the Prog ID. The following table shows the strings you can use for each object that can be created by using this method.
| Object | Prog ID string |
|---|---|
| "X509Enrollment.CCertProperties" | |
| "X509Enrollment.CCertPropertyDescription" | |
| "X509Enrollment.CCertPropertyFriendlyName" | |
| "X509Enrollment.CCspInformation" | |
| "X509Enrollment.CCspInformations" | |
| "X509Enrollment.CCspStatus" | |
| "X509Enrollment.CObjectId" | |
| "X509Enrollment.CObjectIds" | |
| "X509Enrollment.CSignerCertificate" | |
| "X509Enrollment.CX500DistinguishedName" | |
| "X509Enrollment.CX509CertificateRequestCmc" | |
| "X509Enrollment.CX509CertificateRequestPkcs10" | |
| "X509Enrollment.CX509CertificateRequestPkcs7" | |
| "X509Enrollment.CX509Enrollment" | |
| "X509Enrollment.CX509EnrollmentHelper" | |
| "X509Enrollment.CX509Extension" | |
| "X509Enrollment.CX509ExtensionEnhancedKeyUsage" | |
| "X509Enrollment.CX509ExtensionKeyUsage" | |
| "X509Enrollment.CX509Extensions" | |
| "X509Enrollment.CX509ExtensionTemplate" | |
| "X509Enrollment.CX509ExtensionTemplateName" | |
| "X509Enrollment.CX509PrivateKey" |
[out] ppIUnknown
Address of a variable that receives a pointer to an IUnknown interface that represents the created object.
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 | Description |
|---|---|
|
The Prog ID specified represents an object that cannot be created by using this method. |
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
Feedback
Was this page helpful?
