| description | Learn more about: RoInitializeWrapper Class | ||||
|---|---|---|---|---|---|
| title | RoInitializeWrapper Class | ||||
| ms.date | 10/03/2018 | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 4055fbe0-63a7-4c06-b5a0-414fda5640e5 |
Initializes the Windows Runtime.
class RoInitializeWrapper;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.
| Name | Description |
|---|---|
| RoInitializeWrapper::RoInitializeWrapper | Initializes a new instance of the RoInitializeWrapper class. |
| RoInitializeWrapper::~RoInitializeWrapper | Destroys the current instance of the RoInitializeWrapper class. |
| Name | Description |
|---|---|
| RoInitializeWrapper::HRESULT() | Retrieves the HRESULT produced by the RoInitializeWrapper constructor. |
RoInitializeWrapper
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers
Retrieves the HRESULT value produced by the last RoInitializeWrapper constructor.
operator HRESULT()Initializes a new instance of the RoInitializeWrapper class.
RoInitializeWrapper(RO_INIT_TYPE flags)flags
One of the RO_INIT_TYPE enumerations, which specifies the support provided by the Windows Runtime.
The RoInitializeWrapper class invokes Windows::Foundation::Initialize(flags).
Uninitializes the Windows Runtime.
~RoInitializeWrapper()The RoInitializeWrapper class invokes Windows::Foundation::Uninitialize().