PortEnableNotification

cCall [pPortEnableNotification], <hPort, <OFFSET32 CommNotifyProc>, \
    lReferenceData>
or      eax, eax
jz      error_handler
 

Called by the _VCOMM_EnableCommNotification service to register a callback function for event notification. Uses the C calling convention.

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

See Also

CommNotifyProc, _PORTINFORMATION, PortOpen, PortSetEventMask, _VCOMM_EnableCommNotification