COMEarlyBindingObject (JNA API)

com.sun.jna.platform.win32.COM

## Class COMEarlyBindingObject

- java.lang.Object
- - com.sun.jna.PointerType
  - - com.sun.jna.platform.win32.COM.COMInvoker
    - - com.sun.jna.platform.win32.COM.COMBindingBaseObject
      - - com.sun.jna.platform.win32.COM.COMEarlyBindingObject

- All Implemented Interfaces:
    NativeMapped, IDispatch, IUnknown

      public class COMEarlyBindingObject
      extends COMBindingBaseObject
      implements IDispatch

  Helper class to provide basic COM support.
  Author:
    Tobias Wolf, wolf.tobias@gmx.net

- - ### Field Summary

    - ### Fields inherited from class com.sun.jna.platform.win32.COM.COMBindingBaseObject

      `LOCALE_SYSTEM_DEFAULT, LOCALE_USER_DEFAULT`

    - ### 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
    Constructor and Description
    `COMEarlyBindingObject(Guid.CLSID clsid, boolean useActiveInstance, int dwClsContext)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `AddRef()`
    `WinNT.HRESULT` | `GetIDsOfNames(Guid.GUID.ByValue riid, WString[] rgszNames, int cNames, WinDef.LCID lcid, OaIdl.DISPIDByReference rgDispId)`
    `protected java.lang.String` | `getStringProperty(OaIdl.DISPID dispId)`
    `WinNT.HRESULT` | `GetTypeInfo(WinDef.UINT iTInfo, WinDef.LCID lcid, PointerByReference ppTInfo)`
    `WinNT.HRESULT` | `GetTypeInfoCount(WinDef.UINTByReference pctinfo)`
    `WinNT.HRESULT` | `Invoke(OaIdl.DISPID dispIdMember, Guid.GUID.ByValue riid, WinDef.LCID lcid, WinDef.WORD wFlags, OleAuto.DISPPARAMS.ByReference pDispParams, Variant.VARIANT.ByReference pVarResult, OaIdl.EXCEPINFO.ByReference pExcepInfo, IntByReference puArgErr)`
    `WinNT.HRESULT` | `QueryInterface(Guid.GUID.ByValue riid, PointerByReference ppvObject)`
    `int` | `Release()`
    `protected void` | `setProperty(OaIdl.DISPID dispId, boolean value)`

    - ### Methods inherited from class com.sun.jna.platform.win32.COM.COMBindingBaseObject

      `checkFailed, getIDispatch, getIDispatchPointer, getIUnknown, getIUnknownPointer, oleMethod, oleMethod, oleMethod, oleMethod, oleMethod, oleMethod, 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`

- - ### Constructor Detail

    - #### COMEarlyBindingObject

          public COMEarlyBindingObject(Guid.CLSID clsid,
                               boolean useActiveInstance,
                               int dwClsContext)

  - ### Method Detail

    - #### getStringProperty

          protected java.lang.String getStringProperty(OaIdl.DISPID dispId)

    - #### setProperty

          protected void setProperty(OaIdl.DISPID dispId,
                         boolean value)

    - #### QueryInterface

          public WinNT.HRESULT QueryInterface(Guid.GUID.ByValue riid,
                                     PointerByReference ppvObject)

      Specified by:
        `QueryInterface` in interface `IUnknown`

    - #### AddRef

          public int AddRef()

      Specified by:
        `AddRef` in interface `IUnknown`

    - #### Release

          public int Release()

      Specified by:
        `Release` in interface `IUnknown`

    - #### GetTypeInfoCount

          public WinNT.HRESULT GetTypeInfoCount(WinDef.UINTByReference pctinfo)

      Specified by:
        `GetTypeInfoCount` in interface `IDispatch`

    - #### GetTypeInfo

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

      Specified by:
        `GetTypeInfo` in interface `IDispatch`

    - #### GetIDsOfNames

          public WinNT.HRESULT GetIDsOfNames(Guid.GUID.ByValue riid,
                                    WString[] rgszNames,
                                    int cNames,
                                    WinDef.LCID lcid,
                                    OaIdl.DISPIDByReference rgDispId)

      Specified by:
        `GetIDsOfNames` in interface `IDispatch`

    - #### Invoke

          public WinNT.HRESULT Invoke(OaIdl.DISPID dispIdMember,
                             Guid.GUID.ByValue riid,
                             WinDef.LCID lcid,
                             WinDef.WORD wFlags,
                             OleAuto.DISPPARAMS.ByReference pDispParams,
                             Variant.VARIANT.ByReference pVarResult,
                             OaIdl.EXCEPINFO.ByReference pExcepInfo,
                             IntByReference puArgErr)

      Specified by:
        `Invoke` in interface `IDispatch`

Copyright © 2007-2016 Timothy Wall. All Rights Reserved.