VxDcall _VCOMM_SetWriteCallback, <hPort, TxTrigger, \ <OFFSET32 CommNotifyProc>, lReferenceData> or eax, eax jz error_handler
Sets the notification threshold for the transmit queue and registers a callback function for transmit-queue threshold notification.
hPort
Handle of a communications resource.
TxTrigger
Transmit-queue notification threshold. When the number of bytes in the transmit queue reaches this value, the port driver calls the function specified by the CommNotifyProc parameter. Can be -1 to disable transmit-queue notification.
CommNotifyProc
Address of the callback function for transmit-queue notification. Can be different from the notification function for event notification and receive-queue notification. For more information, see the CommNotifyProc function.
lReferenceData
A client-defined 32-bit value that is passed to the callback function. Can be different from the reference data specified for event notification and receive-queue notification.
See also CommNotifyProc