Function : AddIn

AddInSetDefaults - Set the calling task's module handle and default status line
----------------------------------------------------------------------------------------------------------

#include <addin.h>

void LNPUBLIC AddInSetDefaults(
HMODULE hNewModule,
DHANDLE hDesc);

Description :

This function sets the calling task's module handle and default status line descriptor in the per-task data structure maintained by Domino. This function is only supported within the context of a server add-in.

Domino maintains certain per-task data about each server add-in task. This per-task data includes the task's module handle and the default status line. AddInSetDefaults() allows a server add-in task to set the module handle and the default status line maintained by Domino in this per-task data structure.

A status line is one line of text displayed by the Lotus Domino Server console in response to the "show tasks" command. Each status line consists of a task name (in the left column) and a status string (in the right column).

Domino will create a default status line for those API server add-in tasks that use AddInMain() as the main entry point. These programs need not create, set, or delete the default status line. Server add-in tasks that do not use AddInMain() as the main entry point must create must create a status line. Alternatively, they may create a default status line by using AddInQueryDefaults(), AddInCreateStatusLine(), and AddInSetDefaults(). It is not mandatory for a server add-in task to have a default status line unless it must use routines, such as AddInSetStatus() or AddInSetStatusText(), that require a default status line. In addition, server add-in tasks that do not use AddInMain() as the main entry point must call AddInDeleteStatusLine() upon termination in order to deallocate the status line created by AddInCreateStatusLine().

Parameters :

Sample Usage :


AddInQueryDefaults (&hMod, &hOldStatusDescriptor);

AddInDeleteStatusLine (hOldStatusDescriptor);

hStatusDescriptor = AddInCreateStatusLine ("Sample Addin");

AddInSetDefaults (hMod, hStatusDescriptor);

AddInSetStatusText ("Initializing");


See Also :

AddInQueryDefaults
----------------------------------------------------------------------------------------------------------