Editare

Partajați prin


RoInitializeWrapper Class

Initializes the Windows Runtime.

Syntax

class RoInitializeWrapper;

Remarks

RoInitializeWrapper is a convenience that initializes the Windows Runtime and returns an HRESULT that indicates whether the operation was successful. Because the class destructor calls ::Windows::Foundation::Uninitialize, instances of RoInitializeWrapper must be declared at global or top-level scope.

Members

Public Constructors

Name Description
RoInitializeWrapper::RoInitializeWrapper Initializes a new instance of the RoInitializeWrapper class.
RoInitializeWrapper::~RoInitializeWrapper Destroys the current instance of the RoInitializeWrapper class.

Public Operators

Name Description
RoInitializeWrapper::HRESULT() Retrieves the HRESULT produced by the RoInitializeWrapper constructor.

Inheritance Hierarchy

RoInitializeWrapper

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

RoInitializeWrapper::HRESULT()

Retrieves the HRESULT value produced by the last RoInitializeWrapper constructor.

operator HRESULT()

RoInitializeWrapper::RoInitializeWrapper

Initializes a new instance of the RoInitializeWrapper class.

RoInitializeWrapper(RO_INIT_TYPE flags)

Parameters

flags
One of the RO_INIT_TYPE enumerations, which specifies the support provided by the Windows Runtime.

Remarks

The RoInitializeWrapper class invokes Windows::Foundation::Initialize(flags).

RoInitializeWrapper::~RoInitializeWrapper

Uninitializes the Windows Runtime.

~RoInitializeWrapper()

Remarks

The RoInitializeWrapper class invokes Windows::Foundation::Uninitialize().