IMetaDataImport class com
Provides methods for importing and manipulating existing metadata from a portable executable (PE) file or other source, such as a type library or a stand-alone, run-time metadata binary.
- Inheritance
- Implementers
Constructors
-
IMetaDataImport.new(Pointer<
COMObject> ptr) - IMetaDataImport.from(IUnknown interface)
-
factory
Properties
Methods
-
addRef(
) → int -
Increments the reference count for an interface pointer to a COM object.
inherited
-
closeEnum(
Pointer< NativeType> hEnum) → void -
countEnum(
Pointer< NativeType> hEnum, Pointer<Uint32> pulCount) → int -
detach(
) → void -
Detaches the object from the
Finalizer
.inherited -
enumCustomAttributes(
Pointer< Pointer< phEnum, int tk, int tkType, Pointer<NativeType> >Uint32> rCustomAttributes, int cMax, Pointer<Uint32> pcCustomAttributes) → int -
enumEvents(
Pointer< Pointer< phEnum, int td, Pointer<NativeType> >Uint32> rEvents, int cMax, Pointer<Uint32> pcEvents) → int -
enumFields(
Pointer< Pointer< phEnum, int cl, Pointer<NativeType> >Uint32> rFields, int cMax, Pointer<Uint32> pcTokens) → int -
enumFieldsWithName(
Pointer< Pointer< phEnum, int cl, Pointer<NativeType> >Utf16> szName, Pointer<Uint32> rFields, int cMax, Pointer<Uint32> pcTokens) → int -
enumInterfaceImpls(
Pointer< Pointer< phEnum, int td, Pointer<NativeType> >Uint32> rImpls, int cMax, Pointer<Uint32> pcImpls) → int -
enumMemberRefs(
Pointer< Pointer< phEnum, int tkParent, Pointer<NativeType> >Uint32> rMemberRefs, int cMax, Pointer<Uint32> pcTokens) → int -
enumMembers(
Pointer< Pointer< phEnum, int cl, Pointer<NativeType> >Uint32> rMembers, int cMax, Pointer<Uint32> pcTokens) → int -
enumMembersWithName(
Pointer< Pointer< phEnum, int cl, Pointer<NativeType> >Utf16> szName, Pointer<Uint32> rMembers, int cMax, Pointer<Uint32> pcTokens) → int -
enumMethodImpls(
Pointer< Pointer< phEnum, int td, Pointer<NativeType> >Uint32> rMethodBody, Pointer<Uint32> rMethodDecl, int cMax, Pointer<Uint32> pcTokens) → int -
enumMethods(
Pointer< Pointer< phEnum, int cl, Pointer<NativeType> >Uint32> rMethods, int cMax, Pointer<Uint32> pcTokens) → int -
enumMethodSemantics(
Pointer< Pointer< phEnum, int mb, Pointer<NativeType> >Uint32> rEventProp, int cMax, Pointer<Uint32> pcEventProp) → int -
enumMethodsWithName(
Pointer< Pointer< phEnum, int cl, Pointer<NativeType> >Utf16> szName, Pointer<Uint32> rMethods, int cMax, Pointer<Uint32> pcTokens) → int -
enumModuleRefs(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rModuleRefs, int cmax, Pointer<Uint32> pcModuleRefs) → int -
enumParams(
Pointer< Pointer< phEnum, int mb, Pointer<NativeType> >Uint32> rParams, int cMax, Pointer<Uint32> pcTokens) → int -
enumPermissionSets(
Pointer< Pointer< phEnum, int tk, int dwActions, Pointer<NativeType> >Uint32> rPermission, int cMax, Pointer<Uint32> pcTokens) → int -
enumProperties(
Pointer< Pointer< phEnum, int td, Pointer<NativeType> >Uint32> rProperties, int cMax, Pointer<Uint32> pcProperties) → int -
enumSignatures(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rSignatures, int cmax, Pointer<Uint32> pcSignatures) → int -
enumTypeDefs(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rTypeDefs, int cMax, Pointer<Uint32> pcTypeDefs) → int -
enumTypeRefs(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rTypeRefs, int cMax, Pointer<Uint32> pcTypeRefs) → int -
enumTypeSpecs(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rTypeSpecs, int cmax, Pointer<Uint32> pcTypeSpecs) → int -
enumUnresolvedMethods(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rMethods, int cMax, Pointer<Uint32> pcTokens) → int -
enumUserStrings(
Pointer< Pointer< phEnum, Pointer<NativeType> >Uint32> rStrings, int cmax, Pointer<Uint32> pcStrings) → int -
findField(
int td, Pointer< Utf16> szName, Pointer<Uint8> pvSigBlob, int cbSigBlob, Pointer<Uint32> pmb) → int -
findMember(
int td, Pointer< Utf16> szName, Pointer<Uint8> pvSigBlob, int cbSigBlob, Pointer<Uint32> pmb) → int -
findMemberRef(
int td, Pointer< Utf16> szName, Pointer<Uint8> pvSigBlob, int cbSigBlob, Pointer<Uint32> pmr) → int -
findMethod(
int td, Pointer< Utf16> szName, Pointer<Uint8> pvSigBlob, int cbSigBlob, Pointer<Uint32> pmb) → int -
findTypeDefByName(
Pointer< Utf16> szTypeDef, int tkEnclosingClass, Pointer<Uint32> ptd) → int -
findTypeRef(
int tkResolutionScope, Pointer< Utf16> szName, Pointer<Uint32> ptr_) → int -
getClassLayout(
int td, Pointer< Uint32> pdwPackSize, Pointer<COR_FIELD_OFFSET> rFieldOffset, int cMax, Pointer<Uint32> pcFieldOffset, Pointer<Uint32> pulClassSize) → int -
getCustomAttributeByName(
int tkObj, Pointer< Utf16> szName, Pointer<Pointer< ppData, Pointer<NativeType> >Uint32> pcbData) → int -
getCustomAttributeProps(
int cv, Pointer< Uint32> ptkObj, Pointer<Uint32> ptkType, Pointer<Pointer< ppBlob, Pointer<NativeType> >Uint32> pcbSize) → int -
getEventProps(
int ev, Pointer< Uint32> pClass, Pointer<Utf16> szEvent, int cchEvent, Pointer<Uint32> pchEvent, Pointer<Uint32> pdwEventFlags, Pointer<Uint32> ptkEventType, Pointer<Uint32> pmdAddOn, Pointer<Uint32> pmdRemoveOn, Pointer<Uint32> pmdFire, Pointer<Uint32> rmdOtherMethod, int cMax, Pointer<Uint32> pcOtherMethod) → int -
getFieldMarshal(
int tk, Pointer< Pointer< ppvNativeType, Pointer<Uint8> >Uint32> pcbNativeType) → int -
getFieldProps(
int mb, Pointer< Uint32> pClass, Pointer<Utf16> szField, int cchField, Pointer<Uint32> pchField, Pointer<Uint32> pdwAttr, Pointer<Pointer< ppvSigBlob, Pointer<Uint8> >Uint32> pcbSigBlob, Pointer<Uint32> pdwCPlusTypeFlag, Pointer<Pointer< ppValue, Pointer<NativeType> >Uint32> pcchValue) → int -
getInterfaceImplProps(
int iiImpl, Pointer< Uint32> pClass, Pointer<Uint32> ptkIface) → int -
getMemberProps(
int mb, Pointer< Uint32> pClass, Pointer<Utf16> szMember, int cchMember, Pointer<Uint32> pchMember, Pointer<Uint32> pdwAttr, Pointer<Pointer< ppvSigBlob, Pointer<Uint8> >Uint32> pcbSigBlob, Pointer<Uint32> pulCodeRVA, Pointer<Uint32> pdwImplFlags, Pointer<Uint32> pdwCPlusTypeFlag, Pointer<Pointer< ppValue, Pointer<NativeType> >Uint32> pcchValue) → int -
getMemberRefProps(
int mr, Pointer< Uint32> ptk, Pointer<Utf16> szMember, int cchMember, Pointer<Uint32> pchMember, Pointer<Pointer< ppvSigBlob, Pointer<Uint8> >Uint32> pbSig) → int -
getMethodProps(
int mb, Pointer< Uint32> pClass, Pointer<Utf16> szMethod, int cchMethod, Pointer<Uint32> pchMethod, Pointer<Uint32> pdwAttr, Pointer<Pointer< ppvSigBlob, Pointer<Uint8> >Uint32> pcbSigBlob, Pointer<Uint32> pulCodeRVA, Pointer<Uint32> pdwImplFlags) → int -
getMethodSemantics(
int mb, int tkEventProp, Pointer< Uint32> pdwSemanticsFlags) → int -
getModuleFromScope(
Pointer< Uint32> pmd) → int -
getModuleRefProps(
int mur, Pointer< Utf16> szName, int cchName, Pointer<Uint32> pchName) → int -
getNameFromToken(
int tk, Pointer< Pointer< pszUtf8NamePtr) → intInt8> > -
getNativeCallConvFromSig(
Pointer< NativeType> pvSig, int cbSig, Pointer<Uint32> pCallConv) → int -
getNestedClassProps(
int tdNestedClass, Pointer< Uint32> ptdEnclosingClass) → int -
getParamForMethodIndex(
int md, int ulParamSeq, Pointer< Uint32> ppd) → int -
getParamProps(
int tk, Pointer< Uint32> pmd, Pointer<Uint32> pulSequence, Pointer<Utf16> szName, int cchName, Pointer<Uint32> pchName, Pointer<Uint32> pdwAttr, Pointer<Uint32> pdwCPlusTypeFlag, Pointer<Pointer< ppValue, Pointer<NativeType> >Uint32> pcchValue) → int -
getPermissionSetProps(
int pm, Pointer< Uint32> pdwAction, Pointer<Pointer< ppvPermission, Pointer<NativeType> >Uint32> pcbPermission) → int -
getPinvokeMap(
int tk, Pointer< Uint32> pdwMappingFlags, Pointer<Utf16> szImportName, int cchImportName, Pointer<Uint32> pchImportName, Pointer<Uint32> pmrImportDLL) → int -
getPropertyProps(
int prop, Pointer< Uint32> pClass, Pointer<Utf16> szProperty, int cchProperty, Pointer<Uint32> pchProperty, Pointer<Uint32> pdwPropFlags, Pointer<Pointer< ppvSig, Pointer<Uint8> >Uint32> pbSig, Pointer<Uint32> pdwCPlusTypeFlag, Pointer<Pointer< ppDefaultValue, Pointer<NativeType> >Uint32> pcchDefaultValue, Pointer<Uint32> pmdSetter, Pointer<Uint32> pmdGetter, Pointer<Uint32> rmdOtherMethod, int cMax, Pointer<Uint32> pcOtherMethod) → int -
getRVA(
int tk, Pointer< Uint32> pulCodeRVA, Pointer<Uint32> pdwImplFlags) → int -
getScopeProps(
Pointer< Utf16> szName, int cchName, Pointer<Uint32> pchName, Pointer<GUID> pmvid) → int -
getSigFromToken(
int mdSig, Pointer< Pointer< ppvSig, Pointer<Uint8> >Uint32> pcbSig) → int -
getTypeDefProps(
int td, Pointer< Utf16> szTypeDef, int cchTypeDef, Pointer<Uint32> pchTypeDef, Pointer<Uint32> pdwTypeDefFlags, Pointer<Uint32> ptkExtends) → int -
getTypeRefProps(
int tr, Pointer< Uint32> ptkResolutionScope, Pointer<Utf16> szName, int cchName, Pointer<Uint32> pchName) → int -
getTypeSpecFromToken(
int typespec, Pointer< Pointer< ppvSig, Pointer<Uint8> >Uint32> pcbSig) → int -
getUserString(
int stk, Pointer< Utf16> szString, int cchString, Pointer<Uint32> pchString) → int -
isGlobal(
int pd, Pointer< Int32> pbGlobal) → int -
isValidToken(
int tk) → int -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryInterface(
Pointer< GUID> riid, Pointer<Pointer< ppvObject) → intNativeType> > -
Queries a COM object for a pointer to one of its interface; identifying
the interface by a reference to its interface identifier (IID).
inherited
-
release(
) → int -
Decrements the reference count for an interface on a COM object.
inherited
-
resetEnum(
Pointer< NativeType> hEnum, int ulPos) → int -
resolveTypeRef(
int tr, Pointer< GUID> riid, Pointer<Pointer< ppIScope, Pointer<COMObject> >Uint32> ptd) → int -
toInterface(
String iid) → Pointer< COMObject> -
Cast an existing COM object to a specified interface.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited