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.
Creates a COM object using the specified class ID (CLSID).
Syntax
HRESULT
CreateObjectFromCLSID(
[in] CLSID clsidObject,
[out, retval] VARIANT * pObject
);
Parameters
[in]
clsidObjectThe class ID (CLSID) of the COM object to create.
[out, retval]
* pObjectThe COM object that is created.
Return Value
HRESULT
Remarks
This method attempts to create the COM object of the Fusion activation context of the product, if one exists, from the CLSID specified by the clsidObject parameter. For example, if you try to create the native reader object using the IIS_PRODUCT_OS_SERVICE product type and version object, you will get the operating system’s native reader object. However, if the version object is of type IIS_PRODUCT_EXPRESS, the method first applies the Fusion manifest context for the product, and then creates the COM object and returns the native reader for that version of IIS Express.
See Also
GetPropertyValue
CreateObjectFromProgId
ApplyIISEnvironmentVariables
ClearIISEnvironmentVariables
ApplyManifestContext
ClearManifestContext