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§
Sourceunsafe fn create_instance(
&self,
outer: RawComPtr,
riid: REFIID,
) -> ComResult<RawComPtr>
unsafe fn create_instance( &self, outer: RawComPtr, riid: REFIID, ) -> ComResult<RawComPtr>
§Safety
The REFIID must be a valid IID pointer.
fn lock_server(&self, lock: bool) -> ComResult<()>
Trait Implementations§
Source§impl ComInterface for dyn IClassFactory
impl ComInterface for dyn IClassFactory
Source§fn iid_ts<TS: TypeSystem>() -> &'static IIDwhere
Self: ComInterfaceVariant<TS>,
fn iid_ts<TS: TypeSystem>() -> &'static IIDwhere
Self: ComInterfaceVariant<TS>,
Returns the IID of the requested interface.
Source§type TSelf = dyn IClassFactory
type TSelf = dyn IClassFactory
The current interface. Read more