Struct winrt::RuntimeContext
source · pub struct RuntimeContext { /* private fields */ }
Expand description
Manages initialization and uninitialization of the Windows Runtime.
Implementations§
source§impl RuntimeContext
impl RuntimeContext
sourcepub fn init() -> RuntimeContext
pub fn init() -> RuntimeContext
Initializes the Windows Runtime. This must be called before any other operations can use
the Windows Runtime. The Windows Runtime will be unitilized when the returned RuntimeContext
is dropped or uninit
is called explicitly. You have to make sure that this does not happen
as long as any Windows Runtime object is still alive.