Class TypeInfoUtil

java.lang.Object
com.sun.jna.platform.win32.COM.TypeInfoUtil

public class TypeInfoUtil extends Object
The Class ITypeInfoUtil.
Author:
wolf.tobias@gmx.net The Class ITypeInfoUtil.
  • Field Details

    • OLEAUTO

      public static final OleAuto OLEAUTO
      The Constant OLEAUTO.
  • Constructor Details

    • TypeInfoUtil

      public TypeInfoUtil(ITypeInfo typeInfo)
      Instantiates a new i type info util.
      Parameters:
      typeInfo - the type info
  • Method Details

    • getTypeAttr

      public OaIdl.TYPEATTR getTypeAttr()
      Gets the type attr.
      Returns:
      the type attr
    • getTypeComp

      public TypeComp getTypeComp()
      Gets the type comp.
      Returns:
      the type comp
    • getFuncDesc

      public OaIdl.FUNCDESC getFuncDesc(int index)
      Gets the func desc.
      Parameters:
      index - the index
      Returns:
      the func desc
    • getVarDesc

      public OaIdl.VARDESC getVarDesc(int index)
      Gets the var desc.
      Parameters:
      index - the index
      Returns:
      the var desc
    • getNames

      public String[] getNames(OaIdl.MEMBERID memid, int maxNames)
      Gets the names.
      Parameters:
      memid - the memid
      maxNames - the max names
      Returns:
      the names
    • getRefTypeOfImplType

      public OaIdl.HREFTYPE getRefTypeOfImplType(int index)
      Gets the ref type of impl type.
      Parameters:
      index - the index
      Returns:
      the ref type of impl type
    • getImplTypeFlags

      public int getImplTypeFlags(int index)
      Gets the impl type flags.
      Parameters:
      index - the index
      Returns:
      the impl type flags
    • getIDsOfNames

      public OaIdl.MEMBERID[] getIDsOfNames(WTypes.LPOLESTR[] rgszNames, int cNames)
      Gets the i ds of names.
      Parameters:
      rgszNames - the rgsz names
      cNames - the c names
      Returns:
      the i ds of names
    • Invoke

      public TypeInfoUtil.Invoke Invoke(WinDef.PVOID pvInstance, OaIdl.MEMBERID memid, WinDef.WORD wFlags, OleAuto.DISPPARAMS.ByReference pDispParams)
      Invoke.
      Parameters:
      pvInstance - the pv instance
      memid - the memid
      wFlags - the w flags
      pDispParams - the disp params
      Returns:
      the invoke
    • getDocumentation

      public TypeInfoUtil.TypeInfoDoc getDocumentation(OaIdl.MEMBERID memid)
      Gets the documentation.
      Parameters:
      memid - the memid
      Returns:
      the documentation
    • GetDllEntry

      public TypeInfoUtil.DllEntry GetDllEntry(OaIdl.MEMBERID memid, OaIdl.INVOKEKIND invKind)
      Gets the dll entry.
      Parameters:
      memid - the memid
      invKind - the inv kind
      Returns:
      the dll entry
    • getRefTypeInfo

      public ITypeInfo getRefTypeInfo(OaIdl.HREFTYPE hreftype)
      Gets the ref type info.
      Parameters:
      hreftype - the hreftype
      Returns:
      the ref type info
    • AddressOfMember

      public PointerByReference AddressOfMember(OaIdl.MEMBERID memid, OaIdl.INVOKEKIND invKind)
      Address of member.
      Parameters:
      memid - the memid
      invKind - the inv kind
      Returns:
      the pointer by reference
    • CreateInstance

      public PointerByReference CreateInstance(IUnknown pUnkOuter, Guid.REFIID riid)
      Creates the instance.
      Parameters:
      pUnkOuter - the unk outer
      riid - the riid
      Returns:
      the pointer by reference
    • GetMops

      public String GetMops(OaIdl.MEMBERID memid)
      Gets the mops.
      Parameters:
      memid - the memid
      Returns:
      the string
    • GetContainingTypeLib

      public TypeInfoUtil.ContainingTypeLib GetContainingTypeLib()
      Gets the containing type lib.
      Returns:
      the containing type lib
    • ReleaseTypeAttr

      public void ReleaseTypeAttr(OaIdl.TYPEATTR pTypeAttr)
      Release type attr.
      Parameters:
      pTypeAttr - the type attr
    • ReleaseFuncDesc

      public void ReleaseFuncDesc(OaIdl.FUNCDESC pFuncDesc)
      Release func desc.
      Parameters:
      pFuncDesc - the func desc
    • ReleaseVarDesc

      public void ReleaseVarDesc(OaIdl.VARDESC pVarDesc)
      Release var desc.
      Parameters:
      pVarDesc - the var desc