Skip navigation links
JNA API 4.2.2-SNAPSHOT
com.sun.jna.platform.win32.COM.util

Class ProxyObject

  • All Implemented Interfaces:
    IDispatch, IRawDispatchHandle, IUnknown, java.lang.reflect.InvocationHandler


    public class ProxyObject
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler, IDispatch, IRawDispatchHandle
    This object acts as the invocation handler for interfaces annotated with ComInterface. It wraps all (necessary) low level COM calls and executes them on a 'ComThread' held by the Factory object.
    • Field Detail

      • unknownId

        long unknownId
      • theInterface

        java.lang.Class<?> theInterface
      • LOCALE_USER_DEFAULT

        public static final WinDef.LCID LOCALE_USER_DEFAULT
        The Constant LOCALE_USER_DEFAULT.
      • LOCALE_SYSTEM_DEFAULT

        public static final WinDef.LCID LOCALE_SYSTEM_DEFAULT
        The Constant LOCALE_SYSTEM_DEFAULT.
    • Constructor Detail

      • ProxyObject

        public ProxyObject(java.lang.Class<?> theInterface,
                           IDispatch rawDispatch,
                           Factory factory)
      • ProxyObject

        ProxyObject(java.lang.Class<?> theInterface,
                    long unknownId,
                    IDispatch rawDispatch,
                    Factory factory)
        when proxy is created for arguments on a call back, they are already on the com thread, and hence calling 'getUnknownId' will not work as it uses the ComThread however, the unknown pointer value is passed in;
        Parameters:
        theInterface -
        unknownId -
        rawDispatch -
        factory -
JNA API 4.2.2-SNAPSHOT

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