Skip to main content

create_instance

Function create_instance 

pub fn create_instance<T: Interface>(class: &GUID) -> Result<T>
Expand description

Creates an instance of an in-process COM class and returns the requested interface.

The calling thread must already be initialized for COM in an apartment supported by the class.