title: get GuiApplication of running Sap logon vb6 to c#
body: <p>I have to migrate a vb6 program to C# .net 3.5
  the user starts SAP logon and authenticates,
  then he can use the tool to fetch and insert the data using the tool
  the problem:
  i can create a new GuiApplication  with reflection, but i can't fetch currently opened GuiSessions with it :/
  here is the vb6 part of the code that gets currently opened GuiApplication with all opened GuiSessions</p>
  
  <pre><code>Dim obj As Object
      Set obj = CreateObject("SAPGUI")
      Set obj = obj.GetScriptingEngine
  
      If TypeName(obj) = "GuiApplication" Then
          Set SapAutomationObject = obj
          SapAutomationObject.AllowSystemMessages = False
  
          Debug.Print "SAP Automation OK"
      End If
  </code></pre>
  
  <p>i tried it with reflection:</p>
  
  <pre><code> GuiApplication Application = (GuiApplication)System.Activator.CreateInstance(Type.GetTypeFromProgID("SapGui.S‌​criptingCtrl.1"));
  </code></pre>
  
  <p>i got an instance but no existing sessions</p>