EnumVirtualPort Method

The NumberPort method returns a name of virtual serial port specified by parameter NumberPort

BSTR EnumVirtualPort(
  	LONG NumberPort 	// port number obtained from CountVirtualPort property
);

Parameters:

  • CountVirtualPort [in] existing virtual serial port number.

Return Values : virtual serial port name such as COM1, COM2 etc.

Note: Method available for Windows NT4/2000/XP/2003/Vista only.