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.

RoGetActivationFactory function

Gets the activation factory for the specified runtime class.

Syntax


HRESULT RoGetActivationFactory(
  _In_   HSTRING activatableClassId,
  _In_   REFIID iid,
  _Out_  void **factory
);

Parameters

activatableClassId [in]

Type: HSTRING

The ID of the activatable class.

iid [in]

Type: REFIID

The reference ID of the interface.

factory [out]

Type: void**

The activation factory.

Return value

Type: HRESULT

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

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

DLL

Combase.dll

 

 

Community Additions

Show:
© 2014 Microsoft. All rights reserved.