Codota Logo
IJIComObject.call
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain IJIComObject
private void myMethod () {
IJIComObject i =
  • Codota IconJIComServer comServer;comServer.createInstance()
  • Codota IconJIObjectFactory.narrowObject((IJIComObject)result[0])
  • Codota IconJIComServer jIComServer;jIComServer.getInstance()
  • Smart code suggestions by Codota
}
origin: org.kohsuke.jinterop/j-interop

public void setTCharArray()
  throws JIException, InterruptedException, UnknownHostException {
  System.gc();
  JICallBuilder callObject = new JICallBuilder( true);
  callObject.setOpnum(7);
  Object results[];
  callObject.addInParamAsString("AHHHHHHH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR);
  results = comObject.call(callObject);
}
origin: org.jinterop/j-interop

public int getTypeInfoCount() throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(0);
  callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return ((Integer)result[0]).intValue();
}
 
origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public int getTypeInfoCount () throws JIException
{
  final JICallBuilder obj = new JICallBuilder ( true );
  obj.setOpnum ( 0 );
  obj.addInParamAsInt ( 0, JIFlags.FLAG_NULL );
  obj.addOutParamAsType ( Integer.class, JIFlags.FLAG_NULL );
  final Object[] result = this.comObject.call ( obj );
  return ( (Integer)result[0] ).intValue ();
}
origin: org.jinterop/j-interop

public int getImplTypeFlags(int index) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(6);
  callObject.addInParamAsInt(index,JIFlags.FLAG_NULL);
  callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL);
  return ((Integer)(((Object[])comObject.call(callObject))[0])).intValue();
}
 
origin: org.kohsuke.jinterop/j-interop

public int getTypeInfoType(int index) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(2);
  callObject.addInParamAsInt(index,JIFlags.FLAG_NULL);
  callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return ((Integer)result[0]).intValue();
}
origin: org.jinterop/j-interop

public int getTypeInfoCount() throws JIException
{
  JICallBuilder obj = new JICallBuilder(true);
  obj.setOpnum(0);
  obj.addInParamAsInt(0, JIFlags.FLAG_NULL);
  obj.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(obj);
  return ((Integer)result[0]).intValue();
}
 
origin: org.kohsuke.jinterop/j-interop

public int getTypeInfoCount() throws JIException
{
  JICallBuilder obj = new JICallBuilder(true);
  obj.setOpnum(0);
  obj.addInParamAsInt(0, JIFlags.FLAG_NULL);
  obj.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(obj);
  return ((Integer)result[0]).intValue();
}
origin: org.jinterop/j-interop

public void skip(int celt) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(1);
  callObject.addInParamAsInt(celt,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
}
origin: org.kohsuke.jinterop/j-interop

public IJIEnumVariant Clone() throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(3);
  callObject.addOutParamAsObject(IJIComObject.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return (IJIEnumVariant)JIObjectFactory.narrowObject((IJIComObject)result[0]);
}
origin: org.jinterop/j-interop

public IJITypeInfo getTypeInfo(int index) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(1);
  callObject.addInParamAsInt(index,JIFlags.FLAG_NULL);
  callObject.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return (IJITypeInfo) JIObjectFactory.narrowObject((IJIComObject)result[0]);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public IJITypeInfo getRefTypeInfo ( final int hrefType ) throws JIException
{
  final JICallBuilder callObject = new JICallBuilder ( true );
  callObject.setOpnum ( 11 );
  callObject.addInParamAsInt ( hrefType, JIFlags.FLAG_NULL );
  callObject.addOutParamAsType ( IJIComObject.class, JIFlags.FLAG_NULL );
  final Object[] result = this.comObject.call ( callObject );
  return (IJITypeInfo)JIObjectFactory.narrowObject ( (IJIComObject)result[0] );
}
origin: org.kohsuke.jinterop/j-interop

public IJIComObject createInstance(String riid) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(13);
  callObject.addInParamAsUUID(riid,JIFlags.FLAG_NULL);
  callObject.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return JIObjectFactory.narrowObject((IJIComObject)result[0]);
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

  @Override
  public JIString getMops ( final int memberId ) throws JIException
  {
    final JICallBuilder callObject = new JICallBuilder ( true );
    callObject.setOpnum ( 14 );
    callObject.addInParamAsInt ( memberId, JIFlags.FLAG_NULL );
    callObject.addOutParamAsObject ( new JIString ( JIFlags.FLAG_REPRESENTATION_STRING_BSTR ), JIFlags.FLAG_NULL );
    final Object[] result = this.comObject.call ( callObject );
    return (JIString)result[0];
  }
}
origin: org.openscada.jinterop/org.openscada.jinterop.core

@Override
public IJITypeInfo getTypeInfo ( final int index ) throws JIException
{
  final JICallBuilder callObject = new JICallBuilder ( true );
  callObject.setOpnum ( 1 );
  callObject.addInParamAsInt ( index, JIFlags.FLAG_NULL );
  callObject.addOutParamAsType ( IJIComObject.class, JIFlags.FLAG_NULL );
  final Object[] result = this.comObject.call ( callObject );
  return (IJITypeInfo)JIObjectFactory.narrowObject ( (IJIComObject)result[0] );
}
origin: org.kohsuke.jinterop/j-interop

  public JIString getMops(int memberId) throws JIException
  {
    JICallBuilder callObject = new JICallBuilder(true);
    callObject.setOpnum(14);
    callObject.addInParamAsInt(memberId,JIFlags.FLAG_NULL);
    callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL);
    Object[] result = comObject.call(callObject);
    return (JIString)result[0];
  }
}
origin: org.jinterop/j-interop

public IJIComObject createInstance(String riid) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(13);
  
  callObject.addInParamAsUUID(riid,JIFlags.FLAG_NULL);
  callObject.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return JIObjectFactory.narrowObject((IJIComObject)result[0]);
}
 
origin: org.jinterop/j-interop

public Object[] next(int celt) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.setOpnum(0);
  callObject.addInParamAsInt(celt,JIFlags.FLAG_NULL);
  callObject.addOutParamAsObject(new JIArray(JIVariant.class,null,1,true,true),JIFlags.FLAG_NULL);
  callObject.addOutParamAsType(Integer.class,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(callObject);
  return result;
}
 
origin: org.kohsuke.jinterop/j-interop

public IJITypeInfo getTypeInfo(int typeInfo) throws JIException
{
  JICallBuilder obj = new JICallBuilder(true);
  obj.setOpnum(1);
  obj.addInParamAsInt(typeInfo,JIFlags.FLAG_NULL);
  obj.addInParamAsInt(0x400,JIFlags.FLAG_NULL);
  obj.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL);
  //obj.setUpParams(new Object[]{new Integer(typeInfo),new Integer(0x400)},new Object[]{MInterfacePointer.class},JIFlags.FLAG_NULL,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(obj);
  return (IJITypeInfo)JIObjectFactory.narrowObject((IJIComObject)result[0]);
}
origin: org.jinterop/j-interop

public IJITypeInfo getTypeInfo(int typeInfo) throws JIException
{
  JICallBuilder obj = new JICallBuilder(true);
  obj.setOpnum(1);	
  obj.addInParamAsInt(typeInfo,JIFlags.FLAG_NULL);
  obj.addInParamAsInt(0x400,JIFlags.FLAG_NULL);
  obj.addOutParamAsType(IJIComObject.class,JIFlags.FLAG_NULL);
  //obj.setUpParams(new Object[]{new Integer(typeInfo),new Integer(0x400)},new Object[]{MInterfacePointer.class},JIFlags.FLAG_NULL,JIFlags.FLAG_NULL);
  Object[] result = comObject.call(obj);
  return (IJITypeInfo)JIObjectFactory.narrowObject((IJIComObject)result[0]);
}
 
origin: org.kohsuke.jinterop/j-interop

public Object[] getDocumentation(int memberId) throws JIException
{
  JICallBuilder callObject = new JICallBuilder(true);
  callObject.addInParamAsInt(memberId,JIFlags.FLAG_NULL);
  callObject.addInParamAsInt(0xb,JIFlags.FLAG_NULL);//refPtrFlags , as per the oaidl.idl...
  callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL);
  callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL);
  callObject.addOutParamAsObject(Integer.class,JIFlags.FLAG_NULL);
  callObject.addOutParamAsObject(new JIString(JIFlags.FLAG_REPRESENTATION_STRING_BSTR),JIFlags.FLAG_NULL);
  callObject.setOpnum(9);
  return comObject.call(callObject);
}
org.jinterop.dcom.coreIJIComObjectcall

Javadoc

Executes a method call on the actual COM object represented by this interface. All the data like parameter information, operation number etc. are prepared and sent via the JICallBuilder.

JICallBuilder obj = new JICallBuilder();
obj.reInit();
obj.setOpnum(0); //methods are sequentially indexed from 0 in the IDL
obj.addInParamAsString(new JIString("j-Interop Rocks",JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR), JIFlags.FLAG_NULL);
obj.addInParamAsPointer(new JIPointer(new JIString("Pretty simple ;)",JIFlags.FLAG_REPRESENTATION_STRING_LPCTSTR)), JIFlags.FLAG_NULL);

Object[] result = comObject.call(obj);

If return values are expected then set up the Out Params also in the JICallBuilder.

The call timeout used here , by default is the instance level timeout. If no instance level timeout has been specified(or is 0) then the global timeout set in org.jinterop.dcom.core.JISession will be used.

Popular methods of IJIComObject

  • queryInterface
    Retrieve interface references based on iid. Make sure to narrow before casting to the expected type
  • 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

  • Parsing JSON documents to java classes using gson
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now