Virtual Serial Port ActiveX Control provides the following methods to control virtual serial port:

MethodBrief Description
CreatePortCreates virtual serial port
CreatePortExCreates virtual serial port for the current user session
DeleteDeletes virtual serial port
AttachAttach existing virtual serial port
AttachExAttach existing virtual serial port for the current user session
ResetBusDelete all virtual serial ports from the system

 

Signal lines operations

MethodBrief Description
SetCTSChange the state of CTS signal line for virtual serial port
SetDSRChange the state of DSR signal line for virtual serial port
SetDCDChange the state of DCD signal line for virtual serial port
SetRINGChange the state of RING signal line for virtual serial port

 

Port control operation

MethodBrief Description
SetStrictBaudrateChanges the state of strict baudrate for virtual serial port
SetTimeoutsSets timeouts for virtual serial port
SetBreakEmulates physical line break
SetWiringSets connection type depending on parameters
SetHandflowSets the configuration of handshake flow control
SetLineControlSets the line control register (LCR)
SetCharsSets the special characters, which are used for handshake flow control.

 

Port access operations

MethodBrief Description
AppendAccessMaskAdds new mask to the mask list
InsertAccessMaskInserts new access mask to position.
GetAccessMaskGets access mask according to its position.
DeleteAccessMaskDeletes access mask according to its position.
ClearAccessMaskDeletes all access masks

 

Send/Receive operations

MethodBrief Description
WriteSend data to port so other application which is listening to virtual serial port will receive it
WriteStrSend string to serial port
WriteArraySend communication data to serial port as Byte array of VARIANT type
ReadReceive data other application has sent to virtual serial port
ReadStrReceive string from port
ReadArrayReceive data from port as Byte array of VARIANT type

 

Other operations

MethodBrief Description
PurgeQueueDiscards all characters from the input buffer
EnumVirtualPortReturns a name of virtual serial port specified by parameter NumberPort