System.Win.ComObj.TComClassManager.GetFactoryFromClassID
Delphi
function GetFactoryFromClassID(const ClassID: TGUID): TComObjectFactory;
C++
TComObjectFactory* __fastcall GetFactoryFromClassID(const GUID &ClassID);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | TComClassManager |
Description
Returns the class factory for a given COM class identifier.
GetFactoryFromClassID is used internally by DllGetClassObject to obtain a reference to the IClassFactory interface of the corresponding class factory object for a given class object specified by the ClassID parameter.
GetFactoryFromClassID returns the class factory associated with the COM class specified by the ClassID parameter. If the class cannot be found, GetFactoryFromClassID returns nil (Delphi) or NULL (C++).