IActivationFactory interface
Enables classes to be activated by the Windows Runtime.
When to implement
You must implement this interface for every class that has an activatable class identifier and that you register in the Windows Runtime Activation Store.
Members
The IActivationFactory interface inherits from IInspectable. IActivationFactory also has these types of members:
Methods
The IActivationFactory interface has these methods.
| Method | Description |
|---|---|
| ActivateInstance |
Creates a new instance of the Windows Runtime class that is associated with the current activation factory. |
Remarks
Implement the IActivationFactory interface when you create a class that you want Windows Runtime applications to use. Clients call the ActivateInstance method to use an instance of your class.
You can get an IActivationFactory pointer by calling the RoGetActivationFactory function.
During activation of a class, the Windows Runtime calls the DllGetActivationFactory function to get an IActivationFactory pointer that corresponds to the requested class.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IActivationFactory is defined as 00000035-0000-0000-C000-000000000046 |
See also