C API question - Please help

I am a newbie for Lotus Notes C API programming.

I need to launch an Extension Manager DLL when the user launches Lotus Notes. Since, my DLL processes some local/server databases, this extension manager need to be called after the password prompt.

Please advise. Any help greatly appreciated

Thanks

Sam

Subject: C API question - Please help

that’s a tricky thing to do.

unfortunatley you can’t use EM_GETPASSWORD, cause that can’t only be registered as EM_REG_AFTER, even if you could you would miss some users (the ones that have sso or ids without password).

next is that just accessing server databases before authentification will trigger a different password dialog prompt - looks ugly - won’t be acceptable.

which lokal databases do you want to access?

thus we had to create our own dialog for our tool (BCC ClientGenie ( | BCC). but one of the problems for us was that beside needing authentification for accessing a server database we needed to access desktop & bookmark database before notes locks/first opens them. i think you don’t need to do so, so maybe it’s a bit easier for you.

some ideas for workarounds:

*) usually users mailfile (check for new mail) on server is accessed after startup. i think that only happens after authentification. so you could register EM_NSFDBOPEN and check if it contains a servername, and start your actions. but that’ll also have some drawbacks. user might work locally, so first server db might be accessed not right after start. could also cause problems with new installs / setups, but i’m unshure.

*) maybe other notes-plugins like menu-addin are first launched after startup, haven’t checked that.

*) if there are user actions involved like a certain database that has to opened you could start your actions at that point - if new data from server is only needed at this point.

*) since your extension manager is launched also from other notes processes (like nupdate, replicator) and you can check for that tasks in MainEntryPoint, if first of theses tasks is launched you could start your actions here.

*) registering and logging all EXT_XXX, maybe you find a single action that happens only after authentification has happend (but that won’t work in mixed environments, different notes-versions, client settings)

Markus Seitz

markus.seitz@icodex.com