Trait IClassFactory

Source
pub trait IClassFactory {
    // Required methods
    unsafe fn create_instance(
        &self,
        outer: RawComPtr,
        riid: REFIID,
    ) -> ComResult<RawComPtr>;
    fn lock_server(&self, lock: bool) -> ComResult<()>;
}

Required Methods§

Source

unsafe fn create_instance( &self, outer: RawComPtr, riid: REFIID, ) -> ComResult<RawComPtr>

§Safety

The REFIID must be a valid IID pointer.

Source

fn lock_server(&self, lock: bool) -> ComResult<()>

Trait Implementations§

Source§

impl ComInterface for dyn IClassFactory

Source§

fn iid_ts<TS: TypeSystem>() -> &'static IID
where Self: ComInterfaceVariant<TS>,

Returns the IID of the requested interface.

Source§

type TSelf = dyn IClassFactory

The current interface. Read more
Source§

fn iid(ts: TypeSystemName) -> Option<&'static IID>

IID of the COM interface.
Source§

fn deref(com_itf: &ComItf<dyn IClassFactory>) -> &(dyn IClassFactory + 'static)

Dereferences a ComItf<T> into a &T. Read more
Source§

impl ComInterfaceTypeInfo for dyn IClassFactory

Source§

impl<I, S> ComInterfaceVTableFor<I, S, AutomationTypeSystem> for dyn IClassFactory

Source§

const VTABLE: __IClassFactoryAutomationVTable

Source§

impl<I, S> ComInterfaceVTableFor<I, S, RawTypeSystem> for dyn IClassFactory

Source§

const VTABLE: __IClassFactoryRawVTable

Source§

impl ForeignType for dyn IClassFactory

Source§

fn type_name() -> &'static str

The name of the type.

Source§

fn indirection_level() -> u32

Implementors§