pub trait IClassFactoryUnsafeExt: ComDeref{
// Provided methods
unsafe fn CreateInstance(
&self,
outer: *mut IUnknown,
iid: *const IID,
instance: *mut *mut void,
) -> HRESULT { ... }
unsafe fn LockServer(&self, lock: bool) -> HRESULT { ... }
}Expand description
Extension trait allowing calling the methods of the interface IClassFactory
on COM pointers such as ComRef<T> or
ComPtr<T>.
To call these methods, the COM pointer needs to be
Unsafe, e.g.
ComPtr<IClassFactory, _, Unsafe>.