For control the output voltage (0 or 1) of each serial port pin you can use EscapeCommFunction function or SetCommState function, for more info read at MSDN.
If you visit h**p://www.beyondlogic.org/ you can down load a free program called PortTalk. This allows you to control all i/o ports without restriction.