How do I hook events happening in Lotus Notes 8.5 client from an external application?
Posted on 2009-02-23
A) I need to hook into events happening in the Lotus Notes 8.5 client specifically
1. Document Open
2. Document Close
3. Document Print
4. Document Save
5. Email Send
6. Email Receive
B) I need to recieve the event notifications mentioned in A) in an external .net program.
C) the code needs to be transparent to the user of Notes, and should be secure so that the notes user cannot "turn off" or disable these notiifications in any way or method.
From earlier questions to EE, I have worked out that I need to use the Lotus Notes v8 C API for Windows platforms.
From examination of the API, it looks like I need something like the sample program Admin\Tracker which receives notiifications of documents opening but this sample specifies a known database whereas I want to know about any note document or email that is opened.
Also the sample program Mail\ExtMail looks similar to what I want but it seems to be a Notes Extension and I am unsure of whether the Notes user would be able to turn this off or whether I could put this code in an external application.
Can anyone help me with narrowing down which method, code, sample I should be concemtrating on please?
If you have a sample program of your own that I could use, that would be even better.
P.S. I shall hopefully be wrapping the functions I need in an interop dll registered in my external program so that I can interact with the Notes application via the dll. I shall be using vb.net in the external program but C# example would be fine too or just some idea of what I need to do.
Regards in advance