RoRegisterActivationFactories function
Registers an array out-of-process activation factories for a Windows Runtime exe server.
Syntax
HRESULT RoRegisterActivationFactories( _In_ HSTRING *activatableClassIds, _In_ PFNGETACTIVATIONFACTORY *activationFactoryCallbacks, _In_ UINT32 count, _Out_ RO_REGISTRATION_COOKIE *cookie );
Parameters
- activatableClassIds [in]
-
Type: HSTRING*
An array of class identifiers that are associated with activatable runtime classes.
- activationFactoryCallbacks [in]
-
Type: PFNGETACTIVATIONFACTORY*
An array of callback functions that you can use to retrieve the activation factories that correspond with activatableClassIds.
- count [in]
-
Type: UINT32
The number of items in the activatableClassIds and activationFactoryCallbacks arrays.
- cookie [out]
-
Type: RO_REGISTRATION_COOKIE*
A cookie that identifies the registered factories.
Return value
Type: HRESULT
This function can return one of these values.
| Return code | Description |
|---|---|
|
The activation factory was registered successfully. |
|
cookie is NULL. |
|
The thread is in a neutral apartment. |
|
The thread has not been initialized in the Windows Runtime by calling the RoInitialize function. |
|
The factory has been initialized already. |
|
The class is not registered as OutOfProc. |
Remarks
The RoRegisterActivationFactories function enables an exe server to register multiple activation factories without experiencing a race condition.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
|
|
Library |
|
|
DLL |
|
See also