Package com.sun.jna.platform.win32.COM
Class COMBindingBaseObject
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.win32.COM.COMInvoker
com.sun.jna.platform.win32.COM.COMBindingBaseObject
- All Implemented Interfaces:
- NativeMapped
- Direct Known Subclasses:
- COMEarlyBindingObject,- COMLateBindingObject
Helper class to provide basic COM support.
- Author:
- Tobias Wolf, wolf.tobias@gmx.net
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final WinDef.LCIDThe Constant LOCALE_SYSTEM_DEFAULT.static final WinDef.LCIDThe Constant LOCALE_USER_DEFAULT.
- 
Constructor SummaryConstructorsConstructorDescriptionCOMBindingBaseObject(IDispatch dispatch) COMBindingBaseObject(Guid.CLSID clsid, boolean useActiveInstance) COMBindingBaseObject(Guid.CLSID clsid, boolean useActiveInstance, int dwClsContext) COMBindingBaseObject(String progId, boolean useActiveInstance) COMBindingBaseObject(String progId, boolean useActiveInstance, int dwClsContext) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidDeprecated.Gets the i dispatch.Gets the i dispatch pointer.Gets the i unknown.Gets the i unknown pointer.protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT pArg) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT pArg) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT[] pArgs) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT pArg) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name) Ole method.protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT pArg) Ole method.protected WinNT.HRESULToleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT[] pArgs) voidrelease()Release.Methods inherited from class com.sun.jna.platform.win32.COM.COMInvoker_invokeNativeInt, _invokeNativeObject, _invokeNativeVoidMethods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
- 
Field Details- 
LOCALE_USER_DEFAULTThe Constant LOCALE_USER_DEFAULT.
- 
LOCALE_SYSTEM_DEFAULTThe Constant LOCALE_SYSTEM_DEFAULT.
 
- 
- 
Constructor Details- 
COMBindingBaseObject
- 
COMBindingBaseObject
- 
COMBindingBaseObject
- 
COMBindingBaseObjectpublic COMBindingBaseObject(String progId, boolean useActiveInstance, int dwClsContext) throws COMException - Throws:
- COMException
 
- 
COMBindingBaseObject- Throws:
- COMException
 
 
- 
- 
Method Details- 
getIDispatchGets the i dispatch.- Returns:
- the i dispatch
 
- 
getIDispatchPointerGets the i dispatch pointer.- Returns:
- the i dispatch pointer
 
- 
getIUnknownGets the i unknown.- Returns:
- the i unknown
 
- 
getIUnknownPointerGets the i unknown pointer.- Returns:
- the i unknown pointer
 
- 
releasepublic void release()Release.
- 
oleMethodprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT[] pArgs) throws COMException - Throws:
- COMException
 
- 
oleMethodprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) throws COMException - Throws:
- COMException
 
- 
oleMethodprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name, Variant.VARIANT pArg) throws COMException Ole method.- Parameters:
- nType- the n type
- pvResult- the pv result
- name- the name
- pArg- the arg
- Returns:
- the hresult
- Throws:
- COMException- the cOM exception
 
- 
oleMethodprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId, Variant.VARIANT pArg) throws COMException - Throws:
- COMException
 
- 
oleMethodprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, String name) throws COMException Ole method.- Parameters:
- nType- the n type
- pvResult- the pv result
- name- the name
- Returns:
- the hresult
- Throws:
- COMException- the cOM exception
 
- 
oleMethodprotected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, OaIdl.DISPID dispId) throws COMException - Throws:
- COMException
 
- 
oleMethod@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT[] pArgs) throws COMException - Throws:
- COMException
 
- 
oleMethod@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT[] pArgs) throws COMException - Throws:
- COMException
 
- 
oleMethod@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name, Variant.VARIANT pArg) throws COMException Deprecated.- Throws:
- COMException
 
- 
oleMethod@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId, Variant.VARIANT pArg) throws COMException - Throws:
- COMException
 
- 
oleMethod@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, String name) throws COMException Deprecated.- Throws:
- COMException
 
- 
oleMethod@Deprecated protected WinNT.HRESULT oleMethod(int nType, Variant.VARIANT.ByReference pvResult, IDispatch pDisp, OaIdl.DISPID dispId) throws COMException Deprecated.- Throws:
- COMException
 
- 
checkFailedDeprecated.Check failed.- Parameters:
- hr- the hr
 
 
- 
COMUtils.checkRC(com.sun.jna.platform.win32.WinNT.HRESULT)