Package com.sun.jna.platform.win32.COM
Class Dispatch
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.Dispatch
- All Implemented Interfaces:
NativeMapped
,IDispatch
,IUnknown
- Direct Known Subclasses:
Dispatch.ByReference
Wrapper class for the IDispatch interface
IDispatch.GetTypeInfoCount 12 IDispatch.GetTypeInfo 16
IDispatch.GetIDsOfNames 20 IDispatch.Invoke 24
- Author:
- Tobias Wolf, [email protected]
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface com.sun.jna.platform.win32.COM.IDispatch
IID_IDISPATCH
Fields inherited from interface com.sun.jna.platform.win32.COM.IUnknown
IID_IUNKNOWN
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetIDsOfNames
(Guid.REFIID riid, WString[] rgszNames, int cNames, WinDef.LCID lcid, OaIdl.DISPIDByReference rgDispId) Gets the ids of names.GetTypeInfo
(WinDef.UINT iTInfo, WinDef.LCID lcid, PointerByReference ppTInfo) Gets the type info.GetTypeInfoCount
(WinDef.UINTByReference pctinfo) Gets the type info count.Invoke
(OaIdl.DISPID dispIdMember, Guid.REFIID riid, WinDef.LCID lcid, WinDef.WORD wFlags, OleAuto.DISPPARAMS.ByReference pDispParams, Variant.VARIANT.ByReference pVarResult, OaIdl.EXCEPINFO.ByReference pExcepInfo, IntByReference puArgErr) Invoke.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
-
Dispatch
public Dispatch() -
Dispatch
-
-
Method Details
-
GetTypeInfoCount
Gets the type info count.- Specified by:
GetTypeInfoCount
in interfaceIDispatch
- Parameters:
pctinfo
- the pctinfo- Returns:
- the hresult Virtual
-
GetTypeInfo
Gets the type info.- Specified by:
GetTypeInfo
in interfaceIDispatch
- Parameters:
iTInfo
- the i t infolcid
- the lcidppTInfo
- the pp t info- Returns:
- the hresult
-
GetIDsOfNames
public WinNT.HRESULT GetIDsOfNames(Guid.REFIID riid, WString[] rgszNames, int cNames, WinDef.LCID lcid, OaIdl.DISPIDByReference rgDispId) Gets the ids of names.- Specified by:
GetIDsOfNames
in interfaceIDispatch
- Parameters:
riid
- the riidrgszNames
- the rgsz namescNames
- the c nameslcid
- the lcidrgDispId
- the rg disp id- Returns:
- the hresult
-
Invoke
public WinNT.HRESULT Invoke(OaIdl.DISPID dispIdMember, Guid.REFIID riid, WinDef.LCID lcid, WinDef.WORD wFlags, OleAuto.DISPPARAMS.ByReference pDispParams, Variant.VARIANT.ByReference pVarResult, OaIdl.EXCEPINFO.ByReference pExcepInfo, IntByReference puArgErr) Invoke.
-