include vcomm.inc
VxDcall _VCOMM_Add_Port, <ReferenceData, <OFFSET32 PortOpen>, \
<OFFSET32 PortName>>
or eax, eax
jz error_handler
Registers a port. Uses the C calling convention.
ReferenceData
32-bit value that VCOMM passed to the port driver's DriverControl function.
PortOpen
Address of the port driver's PortOpen function.
PortName
Address of a null-terminated string specifying the name of the port.