Click here to Skip to main content
15,893,663 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a C++/MFC DLL that is to retrieve the value of a user-defined variable from the Lotus Notes .ini file. I need to use the Notes API for this task (I'll explain the reasons below). So far I only came across some API calls to retrieve the value of certain system variables from notes.ini, but I found none that allows me to access a user-defined variable. Is there an API call that servers my purpose (the equivalent of GetEvironmentVar(name)/GetEnvironmentString(name) methods in Notes script)?

The DLL will be launched by pressing a button in a Notes database. An initializing function in the DLL is then supposed to look up the respective .ini variable and do something based on its value.

I know that direct file access to notes.ini would be way easier, but unfortunately the DLL does not know where notes.ini is located or if it is even actually named "notes.ini" (could also be username_notes.ini or something totally different) as the Notes client is launched with a command line parameter pointing to the .ini file.
I cannot pass the value from Notes to the DLL when calling the function, either, as I'm only allowed to change the code within an existing function of the DLL, but I must not change function definitions or introduce a new, overloaded function.


Any hint or help is highly appreciated!

Regards,
Rainer
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900