The following VB6 code connects to some third party software and forces a login with the admin username and password:
Set obj = GetObject(, \"workspace.appli
GetObject
returns a COM control. You'd have to work with COM Interop to do this in C#. (This isn't trivial.)
Even if you're working with c#, you can use all classes and methods provided by Vb.Net, including GetObject.
Just add a reference to the .NET Component "Microsoft.VisualBasic".
Once you have added the reference, you are able to call Microsoft.VisualBasic.Interaction.CreateObject() or Microsoft.VisualBasic.Interaction.GetObject()
Marshal.GetActiveObject Method