include vcomm.inc
VxDCall _VCOMM_OpenComm, <<OFFSET32 PortName>, VMId>
mov hPort, eax
Opens a communications resource. Uses the C calling convention.
Value | Meaning |
---|---|
IE_BADID | The port does not exist or no port driver is registered for it. |
IE_OPEN | The port is already open. |
To close the communications resource, use the _VCOMM_CloseComm service. You must close any communications resource you open. A VxD that opens a communications resource for use in a virtual machine (VM) must process the VM_Not_Executeable event to close the resource if the VM terminates.
_VCOMM_CloseComm