Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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 codeDescription
S_OK

The activation factory was registered successfully.

E_POINTER

cookie is NULL.

CO_E_NOT_SUPPORTED

The thread is in a neutral apartment.

CO_E_NOTINITIALIZED

The thread has not been initialized in the Windows Runtime by calling the RoInitialize function.

CO_E_ALREADYINITIALIZED

The factory has been initialized already.

REGDB_E_CLASSNOTREG

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.

Windows Phone 8: This API is supported.

Windows Phone 8.1: This API is supported.

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Roapi.h

See also

RO_REGISTRATION_COOKIE
RoInitialize

 

 

Community Additions

Show:
© 2014 Microsoft