public class COMObject
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected IDispatch |
iDispatch |
protected IUnknown |
iUnknown |
static WinDef.LCID |
LOCALE_SYSTEM_DEFAULT |
static WinDef.LCID |
LOCALE_USER_DEFAULT |
Constructor and Description |
---|
COMObject(IDispatch iDispatch) |
COMObject(java.lang.String progId,
boolean useActiveInstance)
Instantiates a new cOM object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkFailed(WinNT.HRESULT hr) |
IDispatch |
getIDispatch() |
PointerByReference |
getIDispatchPointer() |
IUnknown |
getIUnknown() |
PointerByReference |
getIUnknownPointer() |
protected WinNT.HRESULT |
oleMethod(int nType,
Variant.VARIANT.ByReference pvResult,
IDispatch pDisp,
java.lang.String name) |
protected WinNT.HRESULT |
oleMethod(int nType,
Variant.VARIANT.ByReference pvResult,
IDispatch pDisp,
java.lang.String name,
Variant.VARIANT pArg) |
protected WinNT.HRESULT |
oleMethod(int nType,
Variant.VARIANT.ByReference pvResult,
IDispatch pDisp,
java.lang.String name,
Variant.VARIANT[] pArgs) |
void |
release() |
public static final WinDef.LCID LOCALE_USER_DEFAULT
public static final WinDef.LCID LOCALE_SYSTEM_DEFAULT
protected IUnknown iUnknown
protected IDispatch iDispatch
public COMObject(IDispatch iDispatch)
public COMObject(java.lang.String progId, boolean useActiveInstance) throws COMException
progId
- the prog iduseActiveInstance
- the use active instanceCOMException
- the automation exceptionprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, java.lang.String name, Variant.VARIANT[] pArgs) throws COMException
COMException
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, java.lang.String name, Variant.VARIANT pArg) throws COMException
COMException
protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, java.lang.String name) throws COMException
COMException
protected void checkFailed(WinNT.HRESULT hr)
public IDispatch getIDispatch()
public PointerByReference getIDispatchPointer()
public IUnknown getIUnknown()
public PointerByReference getIUnknownPointer()
public void release()