Function : AddIn

AddInCreateStatusLine - Creates a new status line for a server add-in task, returning a descriptor handle
----------------------------------------------------------------------------------------------------------

#include <addin.h>

DHANDLE LNPUBLIC AddInCreateStatusLine(
char far *TaskName);

Description :

This function creates a new status line for a server add-in task and returns the handle to the new status line descriptor. This handle is used in calls to AddInSetDefaults(), AddInSetStatusLine(), and AddInDeleteStatusLine(). This function is only supported within the context of a server add-in.

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). The TaskName input parameter to AddInCreateStatusLine() becomes the task name that appears in the left column of the status line. The String input parameter to AddInSetStatusLine() becomes the status string in the right column of the status line.

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 a Lotus Domino Server's status line with this function after the Domino run time system is initalized. 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 :

AddInDeleteStatusLine
----------------------------------------------------------------------------------------------------------