Top Description Inners Constructors Methods
com.sun.jna.platform.win32.COM

public Class Dispatch

extends Unknown
implements IDispatch
Class Inheritance
All Implemented Interfaces
com.sun.jna.platform.win32.COM.IDispatch, com.sun.jna.platform.win32.COM.IUnknown
Known Direct Subclasses
com.sun.jna.platform.win32.COM.Dispatch.ByReference
Imports
com.sun.jna.Pointer, .Structure, .WString, com.sun.jna.platform.win32.Guid.REFIID, .OaIdl.DISPID, .OaIdl.DISPIDByReference, .OaIdl.EXCEPINFO, .OleAuto.DISPPARAMS, .Variant.VARIANT, .WinDef.LCID, .WinDef.UINT, .WinDef.UINTByReference, .WinDef.WORD, .WinNT.HRESULT, com.sun.jna.ptr.IntByReference, .PointerByReference

Wrapper class for the IDispatch interface IDispatch.GetTypeInfoCount 12 IDispatch.GetTypeInfo 16 IDispatch.GetIDsOfNames 20 IDispatch.Invoke 24
Author
Tobias Wolf, [email protected]

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public
public
Dispatch(Pointer pvInstance)

Method Summary

Modifier and TypeMethod and Description
public WinNT.HRESULT

Returns:

the hresult
GetIDsOfNames
(Guid.REFIID
the riid
riid
,
WString[]
the rgsz names
rgszNames
,
int
the c names
cNames
,
WinDef.LCID
the lcid
lcid
,
OaIdl.DISPIDByReference
the rg disp id
rgDispId
)

Implements com.sun.jna.platform.win32.COM.IDispatch.GetIDsOfNames.

Gets the ids of names.
public WinNT.HRESULT

Returns:

the hresult
GetTypeInfo
(WinDef.UINT
the i t info
iTInfo
,
WinDef.LCID
the lcid
lcid
,
PointerByReference
the pp t info
ppTInfo
)

Implements com.sun.jna.platform.win32.COM.IDispatch.GetTypeInfo.

Gets the type info.
public WinNT.HRESULT

Returns:

the hresult Virtual
GetTypeInfoCount
(WinDef.UINTByReference
the pctinfo
pctinfo
)

Implements com.sun.jna.platform.win32.COM.IDispatch.GetTypeInfoCount.

Gets the type info count.
public WinNT.HRESULT

Returns:

the hresult
Invoke
(OaIdl.DISPID
the disp id member
dispIdMember
,
Guid.REFIID
the riid
riid
,
WinDef.LCID
the lcid
lcid
,
WinDef.WORD
the w flags
wFlags
,
OleAuto.DISPPARAMS.ByReference
the disp params
pDispParams
,
Variant.VARIANT.ByReference
the var result
pVarResult
,
OaIdl.EXCEPINFO.ByReference
the excep info
pExcepInfo
,
IntByReference
the pu arg err
puArgErr
)

Implements com.sun.jna.platform.win32.COM.IDispatch.Invoke.

Invoke.
Inherited from com.sun.jna.platform.win32.COM.Unknown:
AddRefQueryInterfaceRelease

Constructor Detail

Dispatchback to summary
public Dispatch()
Dispatchback to summary
public Dispatch(Pointer pvInstance)

Method Detail

GetIDsOfNamesback to summary
public WinNT.HRESULT GetIDsOfNames(Guid.REFIID riid, WString[] rgszNames, int cNames, WinDef.LCID lcid, OaIdl.DISPIDByReference rgDispId)

Implements com.sun.jna.platform.win32.COM.IDispatch.GetIDsOfNames.

Gets the ids of names.

Parameters
riid:Guid.REFIID

the riid

rgszNames:WString[]

the rgsz names

cNames:int

the c names

lcid:WinDef.LCID

the lcid

rgDispId:OaIdl.DISPIDByReference

the rg disp id

Returns:WinNT.HRESULT

the hresult

GetTypeInfoback to summary
public WinNT.HRESULT GetTypeInfo(WinDef.UINT iTInfo, WinDef.LCID lcid, PointerByReference ppTInfo)

Implements com.sun.jna.platform.win32.COM.IDispatch.GetTypeInfo.

Gets the type info.

Parameters
iTInfo:WinDef.UINT

the i t info

lcid:WinDef.LCID

the lcid

ppTInfo:PointerByReference

the pp t info

Returns:WinNT.HRESULT

the hresult

GetTypeInfoCountback to summary
public WinNT.HRESULT GetTypeInfoCount(WinDef.UINTByReference pctinfo)

Implements com.sun.jna.platform.win32.COM.IDispatch.GetTypeInfoCount.

Gets the type info count.

Parameters
pctinfo:WinDef.UINTByReference

the pctinfo

Returns:WinNT.HRESULT

the hresult Virtual

Invokeback to summary
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)

Implements com.sun.jna.platform.win32.COM.IDispatch.Invoke.

Invoke.

Parameters
dispIdMember:OaIdl.DISPID

the disp id member

riid:Guid.REFIID

the riid

lcid:WinDef.LCID

the lcid

wFlags:WinDef.WORD

the w flags

pDispParams:OleAuto.DISPPARAMS.ByReference

the disp params

pVarResult:Variant.VARIANT.ByReference

the var result

pExcepInfo:OaIdl.EXCEPINFO.ByReference

the excep info

puArgErr:IntByReference

the pu arg err

Returns:WinNT.HRESULT

the hresult

com.sun.jna.platform.win32.COM back to summary

public Class Dispatch.ByReference

extends Dispatch
implements ByReference
Class Inheritance
All Implemented Interfaces
com.sun.jna.Structure.ByReference

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from com.sun.jna.platform.win32.COM.Dispatch:
GetIDsOfNamesGetTypeInfoGetTypeInfoCountInvoke

Constructor Detail

ByReferenceback to summary
public ByReference()