Installing the directory callback

An application installs a directory callback by calling ct_callback with the action parameter as CS_SET, the type parameter as CS_DS_LOOKUP_CB, and func as the address of the applications directory callback routine.

A directory callback can be installed at the context level or the connection level. Connections that are allocated from a context inherit the context’s directory callback. These steps install the callback at the connection level.

Coding of the callback routine is discussed under “Step 2: Collecting search results in the directory callback”.