_VCOMM_EnableCommNotification

include vcomm.inc

VxDCall _VCOMM_EnableCommNotification, <hPort, \
    <OFFSET32 CommNotifyProc>, lReferenceData>
or      eax, eax
jz      error_handler
 

Registers a callback function for event notification. Uses the C calling convention.

hPort
Handle of a communications resource.
CommNotifyProc
Address of a client-defined callback function that the port driver calls when an event enabled by the _VCOMM_SetCommEventMask service occurs. For more information, see CommNotifyProc. Can be NULL to disable notification.
lReferenceData
A client-defined 32-bit value that is passed to the notification function.

See Also

CommNotifyProc, _VCOMM_GetLastError, _VCOMM_SetCommEventMask