Struct ICreateTypeInfo2
pub struct ICreateTypeInfo2(/* private fields */);
Implementations§
§impl ICreateTypeInfo2
impl ICreateTypeInfo2
pub unsafe fn DeleteFuncDesc(&self, index: u32) -> Result<()>
pub unsafe fn DeleteFuncDescByMemId( &self, memid: i32, invkind: INVOKEKIND, ) -> Result<()>
pub unsafe fn DeleteVarDesc(&self, index: u32) -> Result<()>
pub unsafe fn DeleteVarDescByMemId(&self, memid: i32) -> Result<()>
pub unsafe fn DeleteImplType(&self, index: u32) -> Result<()>
pub unsafe fn SetCustData( &self, guid: *const GUID, pvarval: *const VARIANT, ) -> Result<()>
pub unsafe fn SetFuncCustData( &self, index: u32, guid: *const GUID, pvarval: *const VARIANT, ) -> Result<()>
pub unsafe fn SetParamCustData( &self, indexfunc: u32, indexparam: u32, guid: *const GUID, pvarval: *const VARIANT, ) -> Result<()>
pub unsafe fn SetVarCustData( &self, index: u32, guid: *const GUID, pvarval: *const VARIANT, ) -> Result<()>
pub unsafe fn SetImplTypeCustData( &self, index: u32, guid: *const GUID, pvarval: *const VARIANT, ) -> Result<()>
pub unsafe fn SetHelpStringContext( &self, dwhelpstringcontext: u32, ) -> Result<()>
pub unsafe fn SetFuncHelpStringContext( &self, index: u32, dwhelpstringcontext: u32, ) -> Result<()>
pub unsafe fn SetVarHelpStringContext( &self, index: u32, dwhelpstringcontext: u32, ) -> Result<()>
pub unsafe fn Invalidate(&self) -> Result<()>
pub unsafe fn SetName<P0>(&self, szname: P0) -> Result<()>where
P0: Param<PCWSTR>,
Methods from Deref<Target = ICreateTypeInfo>§
pub unsafe fn SetGuid(&self, guid: *const GUID) -> Result<()>
pub unsafe fn SetTypeFlags(&self, utypeflags: u32) -> Result<()>
pub unsafe fn SetDocString<P0>(&self, pstrdoc: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn SetHelpContext(&self, dwhelpcontext: u32) -> Result<()>
pub unsafe fn SetVersion( &self, wmajorvernum: u16, wminorvernum: u16, ) -> Result<()>
pub unsafe fn AddRefTypeInfo<P0>(
&self,
ptinfo: P0,
phreftype: *const u32,
) -> Result<()>where
P0: Param<ITypeInfo>,
pub unsafe fn AddFuncDesc( &self, index: u32, pfuncdesc: *const FUNCDESC, ) -> Result<()>
pub unsafe fn AddImplType(&self, index: u32, hreftype: u32) -> Result<()>
pub unsafe fn SetImplTypeFlags( &self, index: u32, impltypeflags: IMPLTYPEFLAGS, ) -> Result<()>
pub unsafe fn SetAlignment(&self, cbalignment: u16) -> Result<()>
pub unsafe fn SetSchema<P0>(&self, pstrschema: P0) -> Result<()>where
P0: Param<PCWSTR>,
pub unsafe fn AddVarDesc( &self, index: u32, pvardesc: *const VARDESC, ) -> Result<()>
pub unsafe fn SetFuncAndParamNames( &self, index: u32, rgsznames: &[PCWSTR], ) -> Result<()>
pub unsafe fn SetVarName<P1>(&self, index: u32, szname: P1) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetTypeDescAlias( &self, ptdescalias: *const TYPEDESC, ) -> Result<()>
pub unsafe fn DefineFuncAsDllEntry<P1, P2>(
&self,
index: u32,
szdllname: P1,
szprocname: P2,
) -> Result<()>where
P1: Param<PCWSTR>,
P2: Param<PCWSTR>,
pub unsafe fn SetFuncDocString<P1>(
&self,
index: u32,
szdocstring: P1,
) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetVarDocString<P1>(
&self,
index: u32,
szdocstring: P1,
) -> Result<()>where
P1: Param<PCWSTR>,
pub unsafe fn SetFuncHelpContext( &self, index: u32, dwhelpcontext: u32, ) -> Result<()>
pub unsafe fn SetVarHelpContext( &self, index: u32, dwhelpcontext: u32, ) -> Result<()>
pub unsafe fn SetMops(&self, index: u32, bstrmops: &BSTR) -> Result<()>
pub unsafe fn SetTypeIdldesc(&self, pidldesc: *const IDLDESC) -> Result<()>
pub unsafe fn LayOut(&self) -> Result<()>
Trait Implementations§
§impl CanInto<ICreateTypeInfo> for ICreateTypeInfo2
impl CanInto<ICreateTypeInfo> for ICreateTypeInfo2
§impl CanInto<IUnknown> for ICreateTypeInfo2
impl CanInto<IUnknown> for ICreateTypeInfo2
§impl Clone for ICreateTypeInfo2
impl Clone for ICreateTypeInfo2
§fn clone(&self) -> ICreateTypeInfo2
fn clone(&self) -> ICreateTypeInfo2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ICreateTypeInfo2
impl Debug for ICreateTypeInfo2
§impl Deref for ICreateTypeInfo2
impl Deref for ICreateTypeInfo2
§impl From<&ICreateTypeInfo2> for &ICreateTypeInfo
impl From<&ICreateTypeInfo2> for &ICreateTypeInfo
§fn from(value: &ICreateTypeInfo2) -> Self
fn from(value: &ICreateTypeInfo2) -> Self
Converts to this type from the input type.
§impl From<&ICreateTypeInfo2> for &IUnknown
impl From<&ICreateTypeInfo2> for &IUnknown
§fn from(value: &ICreateTypeInfo2) -> Self
fn from(value: &ICreateTypeInfo2) -> Self
Converts to this type from the input type.
§impl From<ICreateTypeInfo2> for ICreateTypeInfo
impl From<ICreateTypeInfo2> for ICreateTypeInfo
§fn from(value: ICreateTypeInfo2) -> Self
fn from(value: ICreateTypeInfo2) -> Self
Converts to this type from the input type.
§impl From<ICreateTypeInfo2> for IUnknown
impl From<ICreateTypeInfo2> for IUnknown
§fn from(value: ICreateTypeInfo2) -> Self
fn from(value: ICreateTypeInfo2) -> Self
Converts to this type from the input type.
§impl Interface for ICreateTypeInfo2
impl Interface for ICreateTypeInfo2
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ICreateTypeInfo2
impl PartialEq for ICreateTypeInfo2
impl Eq for ICreateTypeInfo2
impl StructuralPartialEq for ICreateTypeInfo2
Auto Trait Implementations§
impl Freeze for ICreateTypeInfo2
impl RefUnwindSafe for ICreateTypeInfo2
impl !Send for ICreateTypeInfo2
impl !Sync for ICreateTypeInfo2
impl Unpin for ICreateTypeInfo2
impl UnwindSafe for ICreateTypeInfo2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more