private JIProgId(String progId) { this.progId = progId; clsid = JIClsid.valueOf(JISystem.getClsidFromProgId(progId)); }
/** Factory method returning an instance of this class. * * @param uuid - clsid of the form "00000000-0000-0000-0000-000000000000" * @return - instance of JIClsid */ public static JIClsid valueOf(String uuid) { if (uuid == null) { return null; } return new JIClsid(uuid); }
winreg.closeConnection(); clsid = JIClsid.valueOf(key.substring(key.indexOf("{") + 1,key.indexOf("}"))); clsid.setAutoRegistration(autoRegister); JISystem.internal_setClsidtoProgId(progId,clsid.getCLSID());
this.clsid = clsid.getCLSID().toUpperCase(); this.session = session; this.session.setTargetServer(address.substring(address.indexOf(":") + 1,address.indexOf("["))); if (JISystem.isAutoRegistrationSet() || clsid.isAutoRegistrationSet())
/** * Return details about a serve class * @param clsId A server class * @throws JIException */ public ClassDetails getClassDetails ( final JIClsid clsId ) throws JIException { if ( clsId == null ) { return null; } JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 1 ); callObject.addInParamAsUUID ( clsId.getCLSID (), JIFlags.FLAG_NULL ); callObject.addOutParamAsObject ( new JIPointer ( new JIString ( JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR ) ), JIFlags.FLAG_NULL ); callObject.addOutParamAsObject ( new JIPointer ( new JIString ( JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR ) ), JIFlags.FLAG_NULL ); Object[] result = Helper.callRespectSFALSE ( getCOMObject (), callObject ); ClassDetails cd = new ClassDetails (); cd.setClsId ( clsId.getCLSID () ); cd.setProgId ( ( (JIString) ( (JIPointer)result[0] ).getReferent () ).getString () ); cd.setDescription ( ( (JIString) ( (JIPointer)result[1] ).getReferent () ).getString () ); return cd; }
winreg.closeConnection(); clsid = JIClsid.valueOf(key.substring(key.indexOf("{") + 1,key.indexOf("}"))); clsid.setAutoRegistration(autoRegister); JISystem.internal_setClsidtoProgId(progId,clsid.getCLSID());
this.clsid = clsid.getCLSID ().toUpperCase (); this.session = session; this.session.setTargetServer ( address.substring ( address.indexOf ( ":" ) + 1, address.indexOf ( "[" ) ) ); if ( JISystem.isAutoRegistrationSet () || clsid.isAutoRegistrationSet () )
private JIProgId ( final String progId ) { this.progId = progId; this.clsid = JIClsid.valueOf ( JISystem.getClsidFromProgId ( progId ) ); }
winreg.closeConnection (); this.clsid = JIClsid.valueOf ( key.substring ( key.indexOf ( "{" ) + 1, key.indexOf ( "}" ) ) ); this.clsid.setAutoRegistration ( this.autoRegister ); JISystem.internal_setClsidtoProgId ( this.progId, this.clsid.getCLSID () );
this.clsid = clsid.getCLSID().toUpperCase(); this.session = session; this.session.setTargetServer(address.substring(address.indexOf(":") + 1,address.indexOf("["))); if (JISystem.isAutoRegistrationSet() || clsid.isAutoRegistrationSet())
/** Factory method returning an instance of this class. * * @param uuid - clsid of the form "00000000-0000-0000-0000-000000000000" * @return - instance of JIClsid */ public static JIClsid valueOf(String uuid) { if (uuid == null) { return null; } return new JIClsid(uuid); }
private JIProgId(String progId) { this.progId = progId; clsid = JIClsid.valueOf(JISystem.getClsidFromProgId(progId)); }
/** * Factory method returning an instance of this class. * * @param uuid * - clsid of the form "00000000-0000-0000-0000-000000000000" * @return - instance of JIClsid */ public static JIClsid valueOf ( final String uuid ) { if ( uuid == null ) { return null; } return new JIClsid ( uuid ); }
public TestCOMServer(String address, String[] args) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1],args[2],args[3]); //instead of this the ProgID "TestCOMServer.ITestCOMServer" can be used as well. //comStub = new JIComServer(JIProgId.valueOf(session,"TestCOMServer.ITestCOMServer"),address,session); //CLSID of ITestCOMServer comStub = new JIComServer(JIClsid.valueOf("44A9CD09-0D9B-4FD2-9B8A-0151F2E0CAD1"),address,session); }
public MSPowerPoint(String address, String[] args) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1],args[2],args[3]); comStub = new JIComServer(JIClsid.valueOf("91493441-5A91-11CF-8700-00AA0060263B"),address,session); }
public TestCOMServer ( final String address, final String[] args ) throws JIException, UnknownHostException { final JISession session = JISession.createSession ( args[1], args[2], args[3] ); //instead of this the ProgID "TestCOMServer.ITestCOMServer" can be used as well. //comStub = new JIComServer(JIProgId.valueOf(session,"TestCOMServer.ITestCOMServer"),address,session); //CLSID of ITestCOMServer this.comStub = new JIComServer ( JIClsid.valueOf ( "44A9CD09-0D9B-4FD2-9B8A-0151F2E0CAD1" ), address, session ); }
public TestCOMServer(String address, String[] args) throws JIException, UnknownHostException { JISession session = JISession.createSession(args[1],args[2],args[3]); //instead of this the ProgID "TestCOMServer.ITestCOMServer" can be used as well. //comStub = new JIComServer(JIProgId.valueOf(session,"TestCOMServer.ITestCOMServer"),address,session); //CLSID of ITestCOMServer comStub = new JIComServer(JIClsid.valueOf("44A9CD09-0D9B-4FD2-9B8A-0151F2E0CAD1"),address,session); }
public MSPowerPoint ( final String address, final String[] args ) throws JIException, UnknownHostException { final JISession session = JISession.createSession ( args[1], args[2], args[3] ); this.comStub = new JIComServer ( JIClsid.valueOf ( "91493441-5A91-11CF-8700-00AA0060263B" ), address, session ); }
public static void main(String[] args) { try { JISession session = JISession.createSession(); JIComServer comServer = new JIComServer(JIClsid.valueOf("00024500-0000-0000-C000-000000000046"), session); IJIComObject comObject = comServer.createInstance(); int h = 0; // SSPIJNIClient jniClient = SSPIJNIClient.getInstance(); // byte[] type1Message = jniClient.invokePrepareSSORequest(); // jcifs.util.Hexdump.hexdump(System.out, type1Message, 0, type1Message.length); // int h = 0; // // jniClient.invokeUnInitialize(); // // type1Message = new Type1Message().toByteArray(); // jcifs.util.Hexdump.hexdump(System.out, type1Message, 0, type1Message.length); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
public static void main ( final String[] args ) { try { final JISession session = JISession.createSession (); final JIComServer comServer = new JIComServer ( JIClsid.valueOf ( "00024500-0000-0000-C000-000000000046" ), session ); final IJIComObject comObject = comServer.createInstance (); final int h = 0; // SSPIJNIClient jniClient = SSPIJNIClient.getInstance(); // byte[] type1Message = jniClient.invokePrepareSSORequest(); // jcifs.util.Hexdump.hexdump(System.out, type1Message, 0, type1Message.length); // int h = 0; // // jniClient.invokeUnInitialize(); // // type1Message = new Type1Message().toByteArray(); // jcifs.util.Hexdump.hexdump(System.out, type1Message, 0, type1Message.length); } catch ( final Exception e ) { // TODO Auto-generated catch block e.printStackTrace (); } } }