In der C++ Api Dokumentation steht folgendes:
How do I run an API program using a different Notes ID or notes.ini file?
When you start a Notes session, either by running an API program or by running the Notes client or Domino server, Notes reads configuration information from an initialization file, called notes.ini on most platforms. In an API program, this happens when you initialize Notes by calling LNNotesSession::Init (C++ API) or NotesInit/NotesInitExtended (C API).
The initialization file specifies many settings, including the location of the Notes ID file and the workspace file. If you wish, you can create multiple initialization files (for example, one for each ID file), and then run your API program with a specific initialization file.
On the Intel platform, you can do this by specifying the name of the initialization file when you initialize Notes, using LNNotesSession::Init (C++ API) or NotesInitIni (C API). For example:
session.Init("c:\\notes\\data\\api_id.ini"); // C++ API
NotesInitIni("c:\\notes\\data\\api_id.ini"); /* C API */
This feature isn't supported on UNIX platforms. On those platforms, you have to set up the appropriate initialization information before running your API program. On UNIX, you can replace or modify notes.ini before running the API program.
Note that your API program can't switch to a different ID or initialization file after Notes has been initialized. To switch ID or initialization files during the course of a program, call LNNotesSession::Init and Term multiple times, specifying different .ini files for each session. Remember that you can have only one session active at any time, so before initializing a new session, you must terminate the current one.
Andreas