Tabnine Logo
IJIComObject.queryInterface
Code IndexAdd Tabnine to your IDE (free)

How to use
queryInterface
method
in
org.jinterop.dcom.core.IJIComObject

Best Java code snippets using org.jinterop.dcom.core.IJIComObject.queryInterface (Showing top 20 results out of 315)

origin: org.openscada.utgard/org.openscada.opc.dcom

  public OPCBrowse ( final IJIComObject opcServer ) throws IllegalArgumentException, UnknownHostException, JIException
  {
    super ( opcServer.queryInterface ( Constants.IOPCBrowse_IID ) );
  }
}
origin: org.jinterop/j-interop

public void getOPC() throws JIException
{
  unknown = comStub.createInstance();
  opcServer = (IJIComObject)unknown.queryInterface("39C13A4D-011E-11D0-9675-0020AFD8ADB3");
}
origin: org.kohsuke.jinterop/j-interop

public void startWord() throws JIException
{
  unknown = comServer.createInstance();
  IJIDispatch dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public void startWord () throws JIException
{
  this.unknown = this.comStub.createInstance ();
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.unknown.queryInterface ( IJIDispatch.IID ) );
}
origin: org.jinterop/j-interop

public void startExcel() throws JIException
{
  unknown = comServer.createInstance();
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
}
origin: org.kohsuke.jinterop/j-interop

public void startWord() throws JIException
{
  unknown = comStub.createInstance();
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public void startExcel () throws JIException
{
  this.unknown = this.comServer.createInstance ();
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.unknown.queryInterface ( IJIDispatch.IID ) );
}
origin: org.jinterop/j-interop

public void startWord() throws JIException
{
  unknown = comStub.createInstance();
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
}
origin: org.jinterop/j-interop

public void startPowerPoint() throws JIException
{
  unknown = comStub.createInstance();
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject((IJIComObject)unknown.queryInterface(IJIDispatch.IID));
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public void startWord () throws JIException
{
  this.unknown = this.comStub.createInstance ();
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.unknown.queryInterface ( IJIDispatch.IID ) );
}
origin: org.jinterop/j-interop

public void startQTP() throws JIException{
        System.out.println(comServer.getProperties());
        unknown = comServer.createInstance();
        dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
        //System.out.println(((JIVariant)dispatch.get("Version")).getObjectAsString().getString());
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public void startQTP () throws JIException
{
  System.out.println ( this.comServer.getProperties () );
  this.unknown = this.comServer.createInstance ();
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.unknown.queryInterface ( IJIDispatch.IID ) );
  //System.out.println(((JIVariant)dispatch.get("Version")).getObjectAsString().getString());
}
origin: org.kohsuke.jinterop/j-interop

public void startQTP() throws JIException{
        System.out.println(comServer.getProperties());
        unknown = comServer.createInstance();
        dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
        //System.out.println(((JIVariant)dispatch.get("Version")).getObjectAsString().getString());
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSWMI2 ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  this.address = address;
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  //		session.useSessionSecurity(true);
  //		session.setGlobalSocketTimeout(5000);
  this.comStub = new JIComServer ( JIClsid.valueOf ( "76a64158-cb41-11d1-8b02-00600806d9b6" ), address, this.session );
  final IJIComObject unknown = this.comStub.createInstance ();
  this.comObject = unknown.queryInterface ( "76A6415B-CB41-11d1-8B02-00600806D9B6" );//ISWbemLocator
  //This will obtain the dispatch interface
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.comObject.queryInterface ( IJIDispatch.IID ) );
}
origin: org.kohsuke.jinterop/j-interop

public MSWMI(String address, String[] args) throws JIException, UnknownHostException
{
  this.address = address;
  session = JISession.createSession(args[1],args[2],args[3]);
  session.useSessionSecurity(true);
  session.setGlobalSocketTimeout(5000);
  comStub = new JIComServer(JIProgId.valueOf("WbemScripting.SWbemLocator"),address,session);
  IJIComObject unknown = comStub.createInstance();
  comObject = (IJIComObject)unknown.queryInterface("76A6415B-CB41-11d1-8B02-00600806D9B6");//ISWbemLocator
  //This will obtain the dispatch interface
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(comObject.queryInterface(IJIDispatch.IID));
}
origin: org.kohsuke.jinterop/j-interop

public void startExcel() throws JIException
{
  unknown = comServer.createInstance();
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(unknown.queryInterface(IJIDispatch.IID));
  IJITypeInfo typeInfo = dispatch.getTypeInfo(0);
  typeInfo.getFuncDesc(0);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public void startExcel () throws JIException
{
  this.unknown = this.comServer.createInstance ();
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( this.unknown.queryInterface ( IJIDispatch.IID ) );
  final IJITypeInfo typeInfo = this.dispatch.getTypeInfo ( 0 );
  typeInfo.getFuncDesc ( 0 );
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public SampleTestServer ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  this.address = address;
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.comStub = new JIComServer ( JIProgId.valueOf ( "SampleTestServer.TestServer" ), address, this.session );
  final IJIComObject unknown = this.comStub.createInstance ();
  this.comObject = unknown.queryInterface ( "1F438B1C-02BA-462E-A971-8E0640C141E5" ); //ITestServer
}
origin: org.jinterop/j-interop

public MSEnumVariant(String address,String[] args) throws JIException, UnknownHostException
{
  session = JISession.createSession(args[1],args[2],args[3]);
  comServer = new JIComServer(JIProgId.valueOf("StdCollection.VBCollection"),address,session);
  IJIComObject object = comServer.createInstance();
  dispatch = (IJIDispatch)JIObjectFactory.narrowObject(object.queryInterface(IJIDispatch.IID));
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

public MSEnumVariant ( final String address, final String[] args ) throws JIException, UnknownHostException
{
  this.session = JISession.createSession ( args[1], args[2], args[3] );
  this.comServer = new JIComServer ( JIProgId.valueOf ( "StdCollection.VBCollection" ), address, this.session );
  final IJIComObject object = this.comServer.createInstance ();
  this.dispatch = (IJIDispatch)JIObjectFactory.narrowObject ( object.queryInterface ( IJIDispatch.IID ) );
}
org.jinterop.dcom.coreIJIComObjectqueryInterface

Javadoc

Retrieve interface references based on iid. Make sure to narrow before casting to the expected type.

For example when expecting an IJIEnumVariant :-

IJIComObject object2 = variant.getObjectAsComObject();
IJIEnumVariant enumVariant = (IJIEnumVariant)JIObjectFactory.narrowObject(object2.queryInterface(IJIEnumVariant.IID));

Throws IllegalStateException if #isLocalReference() returns true.

Popular methods of IJIComObject

  • call
    Refer #call(JICallBuilder) for details on this method.
  • getAssociatedSession
    Returns session associated with this object.
  • addRef
    Increases the reference count on the COM server by 5 (currently hard coded). The developer should r
  • getInstanceLevelSocketTimeout
    Returns the socket timeout set at the instance level. This timeout value is used during all socket l
  • getInterfaceIdentifier
    Returns the COM IID of this object
  • getIpid
    Unique 128 bit uuid representing the interface on the COM server. This value can and should be used
  • getUnreferencedHandler
    Returns the IJIUnreferenced handler associated with this object.
  • internal_getConnectionInfo
    Framework Internal Returns the ConnectionPoint (IJIComObject) and it's Cookie.
  • internal_getInterfacePointer
    Framework Internal Returns self Interface pointer.
  • internal_removeConnectionInfo
    Framework Internal Returns and Removes the connection info from the internal map.
  • internal_setConnectionInfo
    Adds a connection point information and it's cookie to the connectionPointMap internally. To be call
  • internal_setDeffered
    Framework Internal
  • internal_setConnectionInfo,
  • internal_setDeffered,
  • isDispatchSupported,
  • isLocalReference,
  • registerUnreferencedHandler,
  • release,
  • setInstanceLevelSocketTimeout,
  • unregisterUnreferencedHandler

Popular in Java

  • Reactive rest calls using spring rest template
  • findViewById (Activity)
  • getContentResolver (Context)
  • getSystemService (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • JFrame (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now