« XPCOM API Reference
Summary
Returns the factory object for the class specified by ClassID.
void getClassObject(
in nsCIDRef aClass,
in nsIIDRef aIID,
[iid_is(aIID),retval] out nsQIResult aResult
);
Parameters
- aClass
- [in] The ClassID of the factory that is being requested.
- aIID
- [in] The interface type to be returned.
- aResult
- [out] The resulting interface pointer.
Exceptions Thrown
-
NS_ERROR_FACTORY_NOT_REGISTERED
- Indicates that the specified class is not registered.