Package com.sun.jna.platform.win32.COM
Class TypeInfo
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.win32.COM.COMInvoker
com.sun.jna.platform.win32.COM.Unknown
com.sun.jna.platform.win32.COM.TypeInfo
- All Implemented Interfaces:
NativeMapped
,ITypeInfo
,IUnknown
- Direct Known Subclasses:
TypeInfo.ByReference
Wrapper class for the ITypeInfo interface.
- Author:
- Tobias Wolf, wolf.tobias@gmx.net
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.sun.jna.platform.win32.COM.IUnknown
IID_IUNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAddressOfMember
(OaIdl.MEMBERID memid, OaIdl.INVOKEKIND invKind, PointerByReference ppv) Address of member.CreateInstance
(IUnknown pUnkOuter, Guid.REFIID riid, PointerByReference ppvObj) Creates the instance.GetContainingTypeLib
(PointerByReference ppTLib, WinDef.UINTByReference pIndex) Gets the containing type lib.GetDllEntry
(OaIdl.MEMBERID memid, OaIdl.INVOKEKIND invKind, WTypes.BSTRByReference pBstrDllName, WTypes.BSTRByReference pBstrName, WinDef.WORDByReference pwOrdinal) Gets the dll entry.GetDocumentation
(OaIdl.MEMBERID memid, WTypes.BSTRByReference pBstrName, WTypes.BSTRByReference pBstrDocString, WinDef.DWORDByReference pdwHelpContext, WTypes.BSTRByReference pBstrHelpFile) Gets the documentation.GetFuncDesc
(WinDef.UINT index, PointerByReference ppFuncDesc) Gets the func desc.GetIDsOfNames
(WTypes.LPOLESTR[] rgszNames, WinDef.UINT cNames, OaIdl.MEMBERID[] pMemId) Gets the i ds of names.GetImplTypeFlags
(WinDef.UINT index, IntByReference pImplTypeFlags) Gets the impl type flags.GetMops
(OaIdl.MEMBERID memid, WTypes.BSTRByReference pBstrMops) Gets the mops.GetNames
(OaIdl.MEMBERID memid, WTypes.BSTR[] rgBstrNames, WinDef.UINT cMaxNames, WinDef.UINTByReference pcNames) Gets the names.GetRefTypeInfo
(OaIdl.HREFTYPE hRefType, PointerByReference ppTInfo) Gets the ref type info.GetRefTypeOfImplType
(WinDef.UINT index, OaIdl.HREFTYPEByReference pRefType) Gets the ref type of impl type.GetTypeAttr
(PointerByReference ppTypeAttr) Gets the type attr.GetTypeComp
(PointerByReference ppTComp) Gets the type comp.GetVarDesc
(WinDef.UINT index, PointerByReference ppVarDesc) Gets the var desc.Invoke
(WinDef.PVOID pvInstance, OaIdl.MEMBERID memid, WinDef.WORD wFlags, OleAuto.DISPPARAMS.ByReference pDispParams, Variant.VARIANT.ByReference pVarResult, OaIdl.EXCEPINFO.ByReference pExcepInfo, WinDef.UINTByReference puArgErr) Invoke.void
ReleaseFuncDesc
(OaIdl.FUNCDESC pFuncDesc) Release func desc.void
ReleaseTypeAttr
(OaIdl.TYPEATTR pTypeAttr) Release type attr.void
ReleaseVarDesc
(OaIdl.VARDESC pVarDesc) Release var desc.Methods inherited from class com.sun.jna.platform.win32.COM.Unknown
AddRef, QueryInterface, Release
Methods inherited from class com.sun.jna.platform.win32.COM.COMInvoker
_invokeNativeInt, _invokeNativeObject, _invokeNativeVoid
Methods inherited from class com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sun.jna.platform.win32.COM.IUnknown
AddRef, QueryInterface, Release
-
Constructor Details
-
TypeInfo
public TypeInfo()Instantiates a new i type info. -
TypeInfo
Instantiates a new i type info.- Parameters:
pvInstance
- the pv instance
-
-
Method Details
-
GetTypeAttr
Gets the type attr.- Specified by:
GetTypeAttr
in interfaceITypeInfo
- Parameters:
ppTypeAttr
- the pp type attr- Returns:
- the hresult
-
GetTypeComp
Gets the type comp.- Specified by:
GetTypeComp
in interfaceITypeInfo
- Parameters:
ppTComp
- the pp t comp- Returns:
- the hresult
-
GetFuncDesc
Gets the func desc.- Specified by:
GetFuncDesc
in interfaceITypeInfo
- Parameters:
index
- the indexppFuncDesc
- the pp func desc- Returns:
- the hresult
-
GetVarDesc
Gets the var desc.- Specified by:
GetVarDesc
in interfaceITypeInfo
- Parameters:
index
- the indexppVarDesc
- the pp var desc- Returns:
- the hresult
-
GetNames
public WinNT.HRESULT GetNames(OaIdl.MEMBERID memid, WTypes.BSTR[] rgBstrNames, WinDef.UINT cMaxNames, WinDef.UINTByReference pcNames) Gets the names. -
GetRefTypeOfImplType
Gets the ref type of impl type.- Specified by:
GetRefTypeOfImplType
in interfaceITypeInfo
- Parameters:
index
- the indexpRefType
- the ref type- Returns:
- the hresult
-
GetImplTypeFlags
Gets the impl type flags.- Specified by:
GetImplTypeFlags
in interfaceITypeInfo
- Parameters:
index
- the indexpImplTypeFlags
- the impl type flags- Returns:
- the hresult
-
GetIDsOfNames
public WinNT.HRESULT GetIDsOfNames(WTypes.LPOLESTR[] rgszNames, WinDef.UINT cNames, OaIdl.MEMBERID[] pMemId) Gets the i ds of names.- Specified by:
GetIDsOfNames
in interfaceITypeInfo
- Parameters:
rgszNames
- the rgsz namescNames
- the c namespMemId
- the mem id- Returns:
- the hresult
-
Invoke
public WinNT.HRESULT Invoke(WinDef.PVOID pvInstance, OaIdl.MEMBERID memid, WinDef.WORD wFlags, OleAuto.DISPPARAMS.ByReference pDispParams, Variant.VARIANT.ByReference pVarResult, OaIdl.EXCEPINFO.ByReference pExcepInfo, WinDef.UINTByReference puArgErr) Invoke. -
GetDocumentation
public WinNT.HRESULT GetDocumentation(OaIdl.MEMBERID memid, WTypes.BSTRByReference pBstrName, WTypes.BSTRByReference pBstrDocString, WinDef.DWORDByReference pdwHelpContext, WTypes.BSTRByReference pBstrHelpFile) Gets the documentation.- Specified by:
GetDocumentation
in interfaceITypeInfo
- Parameters:
memid
- the memidpBstrName
- the bstr namepBstrDocString
- the bstr doc stringpdwHelpContext
- the pdw help contextpBstrHelpFile
- the bstr help file- Returns:
- the hresult
-
GetDllEntry
public WinNT.HRESULT GetDllEntry(OaIdl.MEMBERID memid, OaIdl.INVOKEKIND invKind, WTypes.BSTRByReference pBstrDllName, WTypes.BSTRByReference pBstrName, WinDef.WORDByReference pwOrdinal) Gets the dll entry.- Specified by:
GetDllEntry
in interfaceITypeInfo
- Parameters:
memid
- the memidinvKind
- the inv kindpBstrDllName
- the bstr dll namepBstrName
- the bstr namepwOrdinal
- the pw ordinal- Returns:
- the hresult
-
GetRefTypeInfo
Gets the ref type info.- Specified by:
GetRefTypeInfo
in interfaceITypeInfo
- Parameters:
hRefType
- the h ref typeppTInfo
- the pp t info- Returns:
- the hresult
-
AddressOfMember
public WinNT.HRESULT AddressOfMember(OaIdl.MEMBERID memid, OaIdl.INVOKEKIND invKind, PointerByReference ppv) Address of member.- Specified by:
AddressOfMember
in interfaceITypeInfo
- Parameters:
memid
- the memidinvKind
- the inv kindppv
- the ppv- Returns:
- the hresult
-
CreateInstance
public WinNT.HRESULT CreateInstance(IUnknown pUnkOuter, Guid.REFIID riid, PointerByReference ppvObj) Creates the instance.- Specified by:
CreateInstance
in interfaceITypeInfo
- Parameters:
pUnkOuter
- the unk outerriid
- the riidppvObj
- the ppv obj- Returns:
- the hresult
-
GetMops
Gets the mops. -
GetContainingTypeLib
Gets the containing type lib.- Specified by:
GetContainingTypeLib
in interfaceITypeInfo
- Parameters:
ppTLib
- the pp t libpIndex
- the index- Returns:
- the hresult
-
ReleaseTypeAttr
Release type attr.- Specified by:
ReleaseTypeAttr
in interfaceITypeInfo
- Parameters:
pTypeAttr
- the type attr
-
ReleaseFuncDesc
Release func desc.- Specified by:
ReleaseFuncDesc
in interfaceITypeInfo
- Parameters:
pFuncDesc
- the func desc
-
ReleaseVarDesc
Release var desc.- Specified by:
ReleaseVarDesc
in interfaceITypeInfo
- Parameters:
pVarDesc
- the var desc
-