Syntax:
FARPROC LlSetNotificationCallback (HLLJOB hJob, FARPROC lpfnNotify);
Task:
Definition of a procedure which will be called for notifications.
Parameter:
hJob: List & Label job handle
lpfnNotify: The address of a function (see below)
Return Value:
Address of the procedure if successful, NULL otherwise
Hints:
The callback function has higher priority than the message; if it is defined no message is sent, but the callback function is called.
This function cannot be used if the .NET component, OCX or VCL controls are used.
The callback function has the following definition:
LPARAM STDCALL MyCallback(UINT nFunction, LPARAM lParam)
and must be an exported function
The definition of the parameter nFunction and lParam can be found in chapter Callbacks and Notifications.
Example:
LPARAM STDCALL MyCallback(UINT nFunction, LPARAM
lParam)
{ //....}
HLLJOB hJob;
unsigned int
wMsg;
LlSetDebug(TRUE);
hJob = LlJobOpen(0);
v =
LlSetNotificationCallback(hJob, MyCallback);
//
....
LlJobClose(hJob);
See also:
LlGetNotificationMessage, LlSetNotificationMessage