Package org.jinterop.dcom.core

Examples of org.jinterop.dcom.core.JIString


    dbpassword = aOCPassword != null ? aOCPassword : "";
    connectionType = CON_SERVERBASED;

    open(host, domain, login, password);

    JIString conStr = new JIString("Srvr=\"" + dbsrvr + "\";Ref=\"" + dbref
        + "\";Usr=\"" + aOCUser + "\";Pwd=\"" + aOCPassword + "\"");
    JIVariant[] var = callMethodA("Connect", new Object[] { conStr });
    IJIDispatch disp = ComApp.toDispatch(var[0]);
    setDispatch(disp);
View Full Code Here


    // aOCUser + "\";Pwd=\"" + aOCPassword + "\"");

    String connectionStr = "File=\"" + aDBFile + "\";Usr=\"" + aOCUser + "\";Pwd=\"" + aOCPassword + "\"";
    //String connectionStr = "File=" + aDBFile + ";Usr=" + aOCUser + ";Pwd=" + aOCPassword + "";

    JIString jconStr = new JIString(connectionStr);

    // System.out.println("***7");
    // FIX for V81.Connector ???
    JIVariant[] var = callMethodA("Connect", new Object[]{jconStr});
   
View Full Code Here

            JISystem.getLogger().setLevel(Level.INFO);
            JISystem.setInBuiltLogHandler(false);
            JISystem.setAutoRegisteration(true);

            crazyLongMicrosoftArgs = new Object[]{
                new JIString(bonafides.getHost()),
                JIVariant.OPTIONAL_PARAM(),
                JIVariant.OPTIONAL_PARAM(),
                JIVariant.OPTIONAL_PARAM(),
                JIVariant.OPTIONAL_PARAM(),
                JIVariant.OPTIONAL_PARAM(),
View Full Code Here

    private void setCount() throws WindowsException {
        try {
            JIVariant[] results = dispatch.callMethodA("ConnectServer", crazyLongMicrosoftArgs);
            IJIDispatch wbemServices_dispatch = (IJIDispatch) JIObjectFactory.narrowObject((results[0]).getObjectAsComObject());
            JIVariant[] results2 = wbemServices_dispatch.callMethodA("InstancesOf", new Object[]{new JIString("Win32_Process"), new Integer(0), JIVariant.OPTIONAL_PARAM()});
            IJIDispatch wbemObjectSet_dispatch = (IJIDispatch) JIObjectFactory.narrowObject((results2[0]).getObjectAsComObject());
            variant = wbemObjectSet_dispatch.get("_NewEnum");
            JIVariant Count = wbemObjectSet_dispatch.get("Count");
            count = Count.getObjectAsInt();
        }
View Full Code Here

            throw new IllegalArgumentException("CIM type is empty.");
        }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        return callMethod(SWbemProperty.class, "Add", new JIString(name), cimType.getValue(),
                (isArray == null) ? JIVariant.OPTIONAL_PARAM() : isArray,
                (flags == null) ? JIVariant.OPTIONAL_PARAM() : flags);
    }
View Full Code Here

            throw new IllegalArgumentException("Property name is empty.");
        }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        return callMethod(SWbemProperty.class, "Item", new JIString(name), JIVariant.OPTIONAL_PARAM());
    }
View Full Code Here

            throw new IllegalArgumentException("Property name is empty.");
        }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        callMethod(null, "Remove", new JIString(name), JIVariant.OPTIONAL_PARAM());
    }
View Full Code Here

                    iFlags += flag.getValue();
                }
            }
        }
        return callMethod(SWbemObjectSet.class, "AssociatorsOf",
                new JIString(objectPath),
                (isEmpty(assocClass)) ? JIVariant.OPTIONAL_PARAM() : new JIString(assocClass),
                (isEmpty(resultClass)) ? JIVariant.OPTIONAL_PARAM() : new JIString(resultClass),
                (isEmpty(resultRole)) ? JIVariant.OPTIONAL_PARAM() : new JIString(resultRole),
                (isEmpty(role)) ? JIVariant.OPTIONAL_PARAM() : new JIString(role),
                (classesOnly == null) ? JIVariant.OPTIONAL_PARAM() : classesOnly,
                (schemaOnly == null) ? JIVariant.OPTIONAL_PARAM() : schemaOnly,
                (isEmpty(requiredAssocQualifier)) ? JIVariant.OPTIONAL_PARAM() : new JIString(requiredAssocQualifier),
                (isEmpty(requiredQualifier)) ? JIVariant.OPTIONAL_PARAM() : new JIString(requiredQualifier),
                (iFlags == null) ? JIVariant.OPTIONAL_PARAM() : iFlags,
                (objwbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objwbemNamedValueSet.getDispatch());
    }
View Full Code Here

            throw new IllegalArgumentException("Object path is empty.");
        }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        callMethod(null, "Delete", new JIString(objectPath), 0,
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

        }
        if(isEmpty(methodName)) { throw new IllegalArgumentException("Method name is empty."); }
        if(flags != null && flags != 0) {
            throw new IllegalArgumentException("Flags must be zero.");
        }
        return callMethod(SWbemObject.class, "ExecMethod", new JIString(objectPath), new JIString(methodName),
                (inParameters == null) ? JIVariant.OPTIONAL_PARAM() : inParameters.getDispatch(),
                JIVariant.OPTIONAL_PARAM(),
                (objWbemNamedValueSet == null) ? JIVariant.OPTIONAL_PARAM() : objWbemNamedValueSet.getDispatch());
    }
View Full Code Here

TOP

Related Classes of org.jinterop.dcom.core.JIString

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.