dbreghandle

Description

Install a handler routine for a registered procedure notification.

Syntax

RETCODE dbreghandle(dbproc, procedure_name, namelen, 
                  handler)
 
DBPROCESS     *dbproc;
DBCHAR            *procedure_name;
DBSMALLINT    namelen;
INTFUNCPTR    handler;

Parameters

dbproc

A pointer to the DBPROCESS structure that provides the connection for a particular front-end/server process. It contains all the information that DB-Library/C uses to manage communications and data between the front end and the server.

procedure_name

A pointer to the name of the registered procedure for which the handler is being installed.

If procedure_name is passed as NULL, the handler is installed as a default handler. The default handler will be called for all registered procedure notifications read by this DBPROCESS connection for which no other handler has been installed.

namelen

The length of procedure_name, in bytes. If procedure_name is null-terminated, pass namelen as DBNULLTERM.

handler

A pointer to the function to be called by DB-Library/C when the registered procedure notification is read.

If handler is passed as NULL, any handler previously installed for the registered procedure is uninstalled.

Returns

SUCCEED or FAIL.

Usage

See also

dbregwatch, dbregnowatch, dbregparam, dbregexec