private JIProgId(String progId) { this.progId = progId; clsid = JIClsid.valueOf(JISystem.getClsidFromProgId(progId)); }
private JIProgId ( final String progId ) { this.progId = progId; this.clsid = JIClsid.valueOf ( JISystem.getClsidFromProgId ( progId ) ); }
private JIProgId(String progId) { this.progId = progId; clsid = JIClsid.valueOf(JISystem.getClsidFromProgId(progId)); }
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 (); } } }
public static SWbemServices connect(JISession session, String hostName) throws UnknownHostException, JIException { JIComServer comStub = new JIComServer( JIClsid.valueOf("76A64158-CB41-11D1-8B02-00600806D9B6"),hostName, session); SWbemLocator loc = JInteropInvocationHandler.wrap(SWbemLocator.class,comStub.createInstance()); return loc.ConnectServer("localhost", null, null, null, null, null, 0, null); }
public MSWMI2(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(JIClsid.valueOf("76a64158-cb41-11d1-8b02-00600806d9b6"),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)); }
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 ) ); }
public MSWMI2(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(JIClsid.valueOf("76a64158-cb41-11d1-8b02-00600806d9b6"),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)); }
public JIClsid getCLSIDFromProgID ( final String progId ) throws JIException { JICallBuilder callObject = new JICallBuilder ( true ); callObject.setOpnum ( 2 ); callObject.addInParamAsString ( progId, JIFlags.FLAG_REPRESENTATION_STRING_LPWSTR ); callObject.addOutParamAsType ( UUID.class, JIFlags.FLAG_NULL ); try { Object[] result = getCOMObject ().call ( callObject ); return JIClsid.valueOf ( ( (UUID)result[0] ).toString () ); } catch ( JIException e ) { if ( e.getErrorCode () == 0x800401F3 ) { return null; } throw e; } }
winreg.closeConnection(); clsid = JIClsid.valueOf(key.substring(key.indexOf("{") + 1,key.indexOf("}"))); clsid.setAutoRegistration(autoRegister); JISystem.internal_setClsidtoProgId(progId,clsid.getCLSID());
winreg.closeConnection(); clsid = JIClsid.valueOf(key.substring(key.indexOf("{") + 1,key.indexOf("}"))); clsid.setAutoRegistration(autoRegister); JISystem.internal_setClsidtoProgId(progId,clsid.getCLSID());
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.session.setGlobalSocketTimeout ( (int)this.globalSocketTimeout ); this.comServer = new JIComServer ( JIClsid.valueOf ( this.connectionInformation.getClsid () ), this.connectionInformation.getHost (), this.session );