nsIComponentManager:createInstance
From MDC
[edit] Summary
Creates an instance of the class specified by ClassID.
void createInstance( in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is(aIID),retval] out nsQIResult aResult );
[edit] Parameters
- aClass
- [in] The ClassID of the object instance that is being requested.
- aDelegate
- [in] The outer object used for aggregation.
- aIID
- [in] The interface type to be returned.
- aResult
- [out] The resulting interface pointer.
[edit] Exceptions Thrown
-
NS_ERROR_FACTORY_NOT_REGISTERED - Indicates that the specified class is not registered.