Indeed. Or you can use the Win32 functions--see
http://msdn2.microsoft.com/en-us/library/aa364229.aspx.
You also need to configure the serial port (primarily baud rate). In Linux, that's an ioctrl() call. On Win32, it's the
COMMCONFIG structure and its associated functions.