Function com::runtime::init_runtime[][src]

pub fn init_runtime() -> Result<(), HRESULT>
Expand description

Initialize a new multithreaded apartment (MTA) runtime. This will ensure that an MTA is running for the process. Every new thread will implicitly be in the MTA unless a different apartment type is chosen (through init_apartment)

This calls CoIncrementMTAUsage

This function only needs to be called once per process.