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 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.
[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 |