VxDcall _VCOMM_SetReadCallback, <hPort, RxTrigger, \ <OFFSET32 CommNotifyProc>, lReferenceData> or eax, eax jz error_handler
Sets the notification threshold for the receive queue and registers a callback function for receive-queue threshold notification.
hPort
Handle of a communications resource.
RxTrigger
Receive-queue notification threshold. When the number of bytes in the receive queue reaches this value, the port driver calls the function specified by the CommNotifyProc parameter. Can be -1 to disable receive-queue notification.
CommNotifyProc
Address of the callback function for receive-queue notification. Can be different from the notification function for event notification and transmit-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 transmit-queue notification.
See also CommNotifyProc