CreateActivatedWinRtObject

Creates an activated WinRT object.

Syntax

HRESULT CreateActivatedWinRtObject(
         const WCHAR *className,
         IInspectable **object
)  

Parameters

className
Type: WCHAR *

[in] Name of the class.

object
Type: IInspectable **

[out] The created object.

Return value

Type: HRESULT 

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

Requirements

Header: Declared in Microsoft.Xbox.Gsdk.Networking.h.

Library: Use Microsoft.Xbox.Gsdk.Networking.lib.