Using the C++ API to open an encrypted database

I’m writing a standalone C++ api program (the notes client is not running). I want to open various .nsf databases. When I encounter an encrypted database, how can I provide the information (username, password, etc.) to encrypt it? I’ve tried the form of the Open function for the LNDb class that takes a username, but always get back a status 0xC0000027 (NULL string). Do I need to use the LNSession object to point to a Notes.Ini file? Any help will be greatly appreciated.

Larry

Subject: Using the C++ API to open an encrypted database

to programatically switch to different id-files you can use SECKFMSwitchToIDFile. You’ll find information about this one in c-api documentation.

Markus Seitz

markus.seitz@icodex.com