[]Constant comedy::com::INIT_MTA

pub const INIT_MTA: LocalKey<Result<ComApartmentScope, HResult>>

A multithreaded apartment scope for the duration of the current thread.

Example

use comedy::com::{ComApartmentScope, INIT_MTA};

fn do_com_stuff(_com: &ComApartmentScope) {
}

INIT_MTA.with(|com| {
    let com = match com {
        Err(e) => return Err(e.clone()),
        Ok(ref com) => com,
    };
    do_com_stuff(com);
    Ok(())
}).unwrap()