Struct windows::Win32::System::WinRT::Metadata::IMetaDataImport2

pub struct IMetaDataImport2(/* private fields */);

Implementations§

§

impl IMetaDataImport2

pub unsafe fn EnumGenericParams( &self, phenum: *mut *mut c_void, tk: u32, rgenericparams: *mut u32, cmax: u32, pcgenericparams: *mut u32 ) -> Result<()>

pub unsafe fn GetGenericParamProps( &self, gp: u32, pulparamseq: *mut u32, pdwparamflags: *mut u32, ptowner: *mut u32, reserved: *mut u32, wzname: Option<&mut [u16]>, pchname: *mut u32 ) -> Result<()>

pub unsafe fn GetMethodSpecProps( &self, mi: u32, tkparent: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32 ) -> Result<()>

pub unsafe fn EnumGenericParamConstraints( &self, phenum: *mut *mut c_void, tk: u32, rgenericparamconstraints: *mut u32, cmax: u32, pcgenericparamconstraints: *mut u32 ) -> Result<()>

pub unsafe fn GetGenericParamConstraintProps( &self, gpc: u32, ptgenericparam: *mut u32, ptkconstrainttype: *mut u32 ) -> Result<()>

pub unsafe fn GetPEKind( &self, pdwpekind: *mut u32, pdwmachine: *mut u32 ) -> Result<()>

pub unsafe fn GetVersionString( &self, pwzbuf: Option<&mut [u16]>, pccbufsize: *mut u32 ) -> Result<()>

pub unsafe fn EnumMethodSpecs( &self, phenum: *mut *mut c_void, tk: u32, rmethodspecs: *mut u32, cmax: u32, pcmethodspecs: *mut u32 ) -> Result<()>

Methods from Deref<Target = IMetaDataImport>§

pub unsafe fn CloseEnum(&self, henum: *mut c_void)

pub unsafe fn CountEnum( &self, henum: *mut c_void, pulcount: *mut u32 ) -> Result<()>

pub unsafe fn ResetEnum(&self, henum: *mut c_void, ulpos: u32) -> Result<()>

pub unsafe fn EnumTypeDefs( &self, phenum: *mut *mut c_void, rtypedefs: *mut u32, cmax: u32, pctypedefs: *mut u32 ) -> Result<()>

pub unsafe fn EnumInterfaceImpls( &self, phenum: *mut *mut c_void, td: u32, rimpls: *mut u32, cmax: u32, pcimpls: *mut u32 ) -> Result<()>

pub unsafe fn EnumTypeRefs( &self, phenum: *mut *mut c_void, rtyperefs: *mut u32, cmax: u32, pctyperefs: *mut u32 ) -> Result<()>

pub unsafe fn FindTypeDefByName<P0>( &self, sztypedef: P0, tkenclosingclass: u32, ptd: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn GetScopeProps( &self, szname: Option<&mut [u16]>, pchname: *mut u32, pmvid: *mut GUID ) -> Result<()>

pub unsafe fn GetModuleFromScope(&self, pmd: *mut u32) -> Result<()>

pub unsafe fn GetTypeDefProps( &self, td: u32, sztypedef: Option<&mut [u16]>, pchtypedef: *mut u32, pdwtypedefflags: *mut u32, ptkextends: *mut u32 ) -> Result<()>

pub unsafe fn GetInterfaceImplProps( &self, iiimpl: u32, pclass: *mut u32, ptkiface: *mut u32 ) -> Result<()>

pub unsafe fn GetTypeRefProps( &self, tr: u32, ptkresolutionscope: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32 ) -> Result<()>

pub unsafe fn ResolveTypeRef( &self, tr: u32, riid: *const GUID, ppiscope: *mut Option<IUnknown>, ptd: *mut u32 ) -> Result<()>

pub unsafe fn EnumMembers( &self, phenum: *mut *mut c_void, cl: u32, rmembers: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn EnumMembersWithName<P0>( &self, phenum: *mut *mut c_void, cl: u32, szname: P0, rmembers: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn EnumMethods( &self, phenum: *mut *mut c_void, cl: u32, rmethods: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn EnumMethodsWithName<P0>( &self, phenum: *mut *mut c_void, cl: u32, szname: P0, rmethods: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn EnumFields( &self, phenum: *mut *mut c_void, cl: u32, rfields: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn EnumFieldsWithName<P0>( &self, phenum: *mut *mut c_void, cl: u32, szname: P0, rfields: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn EnumParams( &self, phenum: *mut *mut c_void, mb: u32, rparams: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn EnumMemberRefs( &self, phenum: *mut *mut c_void, tkparent: u32, rmemberrefs: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn EnumMethodImpls( &self, phenum: *mut *mut c_void, td: u32, rmethodbody: *mut u32, rmethoddecl: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn EnumPermissionSets( &self, phenum: *mut *mut c_void, tk: u32, dwactions: u32, rpermission: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn FindMember<P0>( &self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn FindMethod<P0>( &self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn FindField<P0>( &self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmb: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn FindMemberRef<P0>( &self, td: u32, szname: P0, pvsigblob: *mut u8, cbsigblob: u32, pmr: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn GetMethodProps( &self, mb: u32, pclass: *mut u32, szmethod: Option<&mut [u16]>, pchmethod: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32 ) -> Result<()>

pub unsafe fn GetMemberRefProps( &self, mr: u32, ptk: *mut u32, szmember: Option<&mut [u16]>, pchmember: *mut u32, ppvsigblob: *mut *mut u8, pbsig: *mut u32 ) -> Result<()>

pub unsafe fn EnumProperties( &self, phenum: *mut *mut c_void, td: u32, rproperties: *mut u32, cmax: u32, pcproperties: *mut u32 ) -> Result<()>

pub unsafe fn EnumEvents( &self, phenum: *mut *mut c_void, td: u32, revents: *mut u32, cmax: u32, pcevents: *mut u32 ) -> Result<()>

pub unsafe fn GetEventProps<P0>( &self, ev: u32, pclass: *mut u32, szevent: P0, cchevent: u32, pchevent: *mut u32, pdweventflags: *mut u32, ptkeventtype: *mut u32, pmdaddon: *mut u32, pmdremoveon: *mut u32, pmdfire: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn EnumMethodSemantics( &self, phenum: *mut *mut c_void, mb: u32, reventprop: *mut u32, cmax: u32, pceventprop: *mut u32 ) -> Result<()>

pub unsafe fn GetMethodSemantics( &self, mb: u32, tkeventprop: u32, pdwsemanticsflags: *mut u32 ) -> Result<()>

pub unsafe fn GetClassLayout( &self, td: u32, pdwpacksize: *mut u32, rfieldoffset: *mut COR_FIELD_OFFSET, cmax: u32, pcfieldoffset: *mut u32, pulclasssize: *mut u32 ) -> Result<()>

pub unsafe fn GetFieldMarshal( &self, tk: u32, ppvnativetype: *mut *mut u8, pcbnativetype: *mut u32 ) -> Result<()>

pub unsafe fn GetRVA( &self, tk: u32, pulcoderva: *mut u32, pdwimplflags: *mut u32 ) -> Result<()>

pub unsafe fn GetPermissionSetProps( &self, pm: u32, pdwaction: *mut u32, ppvpermission: *const *const c_void, pcbpermission: *mut u32 ) -> Result<()>

pub unsafe fn GetSigFromToken( &self, mdsig: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32 ) -> Result<()>

pub unsafe fn GetModuleRefProps( &self, mur: u32, szname: Option<&mut [u16]>, pchname: *mut u32 ) -> Result<()>

pub unsafe fn EnumModuleRefs( &self, phenum: *mut *mut c_void, rmodulerefs: *mut u32, cmax: u32, pcmodulerefs: *mut u32 ) -> Result<()>

pub unsafe fn GetTypeSpecFromToken( &self, typespec: u32, ppvsig: *mut *mut u8, pcbsig: *mut u32 ) -> Result<()>

pub unsafe fn GetNameFromToken( &self, tk: u32, pszutf8nameptr: *mut *mut i8 ) -> Result<()>

pub unsafe fn EnumUnresolvedMethods( &self, phenum: *mut *mut c_void, rmethods: *mut u32, cmax: u32, pctokens: *mut u32 ) -> Result<()>

pub unsafe fn GetUserString( &self, stk: u32, szstring: Option<&mut [u16]>, pchstring: *mut u32 ) -> Result<()>

pub unsafe fn GetPinvokeMap( &self, tk: u32, pdwmappingflags: *mut u32, szimportname: Option<&mut [u16]>, pchimportname: *mut u32, pmrimportdll: *mut u32 ) -> Result<()>

pub unsafe fn EnumSignatures( &self, phenum: *mut *mut c_void, rsignatures: *mut u32, cmax: u32, pcsignatures: *mut u32 ) -> Result<()>

pub unsafe fn EnumTypeSpecs( &self, phenum: *mut *mut c_void, rtypespecs: *mut u32, cmax: u32, pctypespecs: *mut u32 ) -> Result<()>

pub unsafe fn EnumUserStrings( &self, phenum: *mut *mut c_void, rstrings: *mut u32, cmax: u32, pcstrings: *mut u32 ) -> Result<()>

pub unsafe fn GetParamForMethodIndex( &self, md: u32, ulparamseq: u32, ppd: *mut u32 ) -> Result<()>

pub unsafe fn EnumCustomAttributes( &self, phenum: *mut *mut c_void, tk: u32, tktype: u32, rcustomattributes: *mut u32, cmax: u32, pccustomattributes: *mut u32 ) -> Result<()>

pub unsafe fn GetCustomAttributeProps( &self, cv: u32, ptkobj: *mut u32, ptktype: *mut u32, ppblob: *const *const c_void, pcbsize: *mut u32 ) -> Result<()>

pub unsafe fn FindTypeRef<P0>( &self, tkresolutionscope: u32, szname: P0, ptr: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn GetMemberProps( &self, mb: u32, pclass: *mut u32, szmember: Option<&mut [u16]>, pchmember: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pulcoderva: *mut u32, pdwimplflags: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut c_void, pcchvalue: *mut u32 ) -> Result<()>

pub unsafe fn GetFieldProps( &self, mb: u32, pclass: *mut u32, szfield: Option<&mut [u16]>, pchfield: *mut u32, pdwattr: *mut u32, ppvsigblob: *mut *mut u8, pcbsigblob: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut c_void, pcchvalue: *mut u32 ) -> Result<()>

pub unsafe fn GetPropertyProps<P0>( &self, prop: u32, pclass: *mut u32, szproperty: P0, cchproperty: u32, pchproperty: *mut u32, pdwpropflags: *mut u32, ppvsig: *mut *mut u8, pbsig: *mut u32, pdwcplustypeflag: *mut u32, ppdefaultvalue: *mut *mut c_void, pcchdefaultvalue: *mut u32, pmdsetter: *mut u32, pmdgetter: *mut u32, rmdothermethod: *mut u32, cmax: u32, pcothermethod: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn GetParamProps( &self, tk: u32, pmd: *mut u32, pulsequence: *mut u32, szname: Option<&mut [u16]>, pchname: *mut u32, pdwattr: *mut u32, pdwcplustypeflag: *mut u32, ppvalue: *mut *mut c_void, pcchvalue: *mut u32 ) -> Result<()>

pub unsafe fn GetCustomAttributeByName<P0>( &self, tkobj: u32, szname: P0, ppdata: *const *const c_void, pcbdata: *mut u32 ) -> Result<()>
where P0: Param<PCWSTR>,

pub unsafe fn IsValidToken(&self, tk: u32) -> BOOL

pub unsafe fn GetNestedClassProps( &self, tdnestedclass: u32, ptdenclosingclass: *mut u32 ) -> Result<()>

pub unsafe fn GetNativeCallConvFromSig( &self, pvsig: *const c_void, cbsig: u32, pcallconv: *mut u32 ) -> Result<()>

pub unsafe fn IsGlobal(&self, pd: u32, pbglobal: *mut i32) -> Result<()>

Trait Implementations§

§

impl Clone for IMetaDataImport2

§

fn clone(&self) -> IMetaDataImport2

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for IMetaDataImport2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Deref for IMetaDataImport2

§

type Target = IMetaDataImport

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl From<&IMetaDataImport2> for &IMetaDataImport

§

fn from(value: &IMetaDataImport2) -> Self

Converts to this type from the input type.
§

impl From<&IMetaDataImport2> for &IUnknown

§

fn from(value: &IMetaDataImport2) -> Self

Converts to this type from the input type.
§

impl From<IMetaDataImport2> for IMetaDataImport

§

fn from(value: IMetaDataImport2) -> Self

Converts to this type from the input type.
§

impl From<IMetaDataImport2> for IUnknown

§

fn from(value: IMetaDataImport2) -> Self

Converts to this type from the input type.
§

impl Interface for IMetaDataImport2

§

const IID: GUID = _

The GUID associated with the interface.
§

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

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

impl PartialEq for IMetaDataImport2

§

fn eq(&self, other: &IMetaDataImport2) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IMetaDataImport2

§

impl StructuralPartialEq for IMetaDataImport2

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.