Creates a COM object using the specified ProgID.
HRESULT CreateObjectFromProgId( [in, string] BSTR bstrObjectName, [out, retval] VARIANT * pObject );
[in, string] bstrObjectName
The ProgID of the COM object to create.
[out, retval] * pObject
The COM object that is created.
This method attempts to create the COM object of the Fusion activation context of the product, if one exists, from the ProgID specified by the bstrObjectName parameter. For example, if you try to create the native reader object using the IIS_PRODUCT_OS_SERVICE product type and version object, the method returns 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.