In addition to the context handle, the login functions also return a list of the applications and databases to which the logged in user has access (a program can obtain this list at any time by calling the EssListDatabases() function. The program allows the user to select a specific application and database by calling the EssSetActive() function.
If EssAutoLogin() is used to log in, it can optionally set the active application and database.
To get information about an Essbase application (e.g. whether or not it is already loaded), call the EssGetApplicationState() or EssGetApplicationInfo() functions. To get information about a specific database, call the EssGetDatabaseState() or EssGetDatabaseInfo() functions. You can call these functions before setting the active application and database.