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
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()