In Quickr Services for Domino, you can have your own custom
code execute before and after certain events on the Windows platform. The
way to do this is to build a Windows DLL that associates Event Handlers
(functions in C) you write with Quickr Events.
Here is an example of an Event Handler for capturing page events
int PageHook( QdkHookType hookType, NOTEHANDLE hNote, int
if (!hNote) return -1;
NSFItemGetText( hNote, "h_Name", name, sizeof(name)-1);
NSFItemGetText( hNote, "h_PageCmdStage", stage, sizeof(stage)-1);
NSFItemGetText( hNote, "h_authors", authors, sizeof(authors)-1);
NSFItemGetText( hNote, "h_readers", readers, sizeof(readers)-1);
printf("\nQuickr Page Hook hookType = %d\n",hookType);
printf("NOTEHANDLE = %08x\n", hNote);
printf("document name= %s\n", name);
printf("h_PageCmdStage = %s\n", stage);
printf("h_authors = %s\n", authors);
printf("h_readers = %s\n", readers);
As you can see the function is passed a flag (hookType) denoting whether
the event handler is being called before (-1) or after (+1) the event.
Also, the document id is passed and with this id you can retrieve interesting
properties from the document such as, in this example, the document name
and the access control lists.
A complete example of such a DLL is provided here...
With an example make file generated by Microsoft Visual Studio 9... (if
you use a different C/C++ development environment you may need to generate
a different makefile)
Once you have a DLL, to deploy is simple. Just add this line to the Quickr
Server notes.ini file...