My application "SC" is going to exectued standalone on a desktop (the user will enter a username / passwrd to connect to the database) Also it connects via another application that is already logged onto the database.
The question I have is how can i pick up the enviroment variables related to user / password / and database when the application "SC" if executed from another application that is already connected to the oracle database. The other application would be executed from a citrix server if that makes any difference ...
I have tried to use
test = Environment.GetEnvironmentVariable("USER");
MessageBox.Show("test = " + test + " \n"
, "Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
test is always blank wether its from the desktop or from the citrix application