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
public class TypeInfo extends Unknown implements ITypeInfo
Wrapper class for the ITypeInfo interface.- Author:
- Tobias Wolf, wolf.tobias@gmx.net
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeInfo.ByReference
-
Field Summary
-
Fields inherited from interface com.sun.jna.platform.win32.COM.IUnknown
IID_IUNKNOWN
-
-
Method Summary
-
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 Detail
-
TypeInfo
public TypeInfo()
Instantiates a new i type info.
-
TypeInfo
public TypeInfo(Pointer pvInstance)
Instantiates a new i type info.- Parameters:
pvInstance- the pv instance
-
-
Method Detail
-
GetTypeAttr
public WinNT.HRESULT GetTypeAttr(PointerByReference ppTypeAttr)
Gets the type attr.- Specified by:
GetTypeAttrin interfaceITypeInfo- Parameters:
ppTypeAttr- the pp type attr- Returns:
- the hresult
-
GetTypeComp
public WinNT.HRESULT GetTypeComp(PointerByReference ppTComp)
Gets the type comp.- Specified by:
GetTypeCompin interfaceITypeInfo- Parameters:
ppTComp- the pp t comp- Returns:
- the hresult
-
GetFuncDesc
public WinNT.HRESULT GetFuncDesc(WinDef.UINT index, PointerByReference ppFuncDesc)
Gets the func desc.- Specified by:
GetFuncDescin interfaceITypeInfo- Parameters:
index- the indexppFuncDesc- the pp func desc- Returns:
- the hresult
-
GetVarDesc
public WinNT.HRESULT GetVarDesc(WinDef.UINT index, PointerByReference ppVarDesc)
Gets the var desc.- Specified by:
GetVarDescin 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
public WinNT.HRESULT GetRefTypeOfImplType(WinDef.UINT index, OaIdl.HREFTYPEByReference pRefType)
Gets the ref type of impl type.- Specified by:
GetRefTypeOfImplTypein interfaceITypeInfo- Parameters:
index- the indexpRefType- the ref type- Returns:
- the hresult
-
GetImplTypeFlags
public WinNT.HRESULT GetImplTypeFlags(WinDef.UINT index, IntByReference pImplTypeFlags)
Gets the impl type flags.- Specified by:
GetImplTypeFlagsin 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:
GetIDsOfNamesin 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:
GetDocumentationin 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:
GetDllEntryin interfaceITypeInfo- Parameters:
memid- the memidinvKind- the inv kindpBstrDllName- the bstr dll namepBstrName- the bstr namepwOrdinal- the pw ordinal- Returns:
- the hresult
-
GetRefTypeInfo
public WinNT.HRESULT GetRefTypeInfo(OaIdl.HREFTYPE hRefType, PointerByReference ppTInfo)
Gets the ref type info.- Specified by:
GetRefTypeInfoin 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:
AddressOfMemberin 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:
CreateInstancein interfaceITypeInfo- Parameters:
pUnkOuter- the unk outerriid- the riidppvObj- the ppv obj- Returns:
- the hresult
-
GetMops
public WinNT.HRESULT GetMops(OaIdl.MEMBERID memid, WTypes.BSTRByReference pBstrMops)
Gets the mops.
-
GetContainingTypeLib
public WinNT.HRESULT GetContainingTypeLib(PointerByReference ppTLib, WinDef.UINTByReference pIndex)
Gets the containing type lib.- Specified by:
GetContainingTypeLibin interfaceITypeInfo- Parameters:
ppTLib- the pp t libpIndex- the index- Returns:
- the hresult
-
ReleaseTypeAttr
public void ReleaseTypeAttr(OaIdl.TYPEATTR pTypeAttr)
Release type attr.- Specified by:
ReleaseTypeAttrin interfaceITypeInfo- Parameters:
pTypeAttr- the type attr
-
ReleaseFuncDesc
public void ReleaseFuncDesc(OaIdl.FUNCDESC pFuncDesc)
Release func desc.- Specified by:
ReleaseFuncDescin interfaceITypeInfo- Parameters:
pFuncDesc- the func desc
-
ReleaseVarDesc
public void ReleaseVarDesc(OaIdl.VARDESC pVarDesc)
Release var desc.- Specified by:
ReleaseVarDescin interfaceITypeInfo- Parameters:
pVarDesc- the var desc
-
-