Win32 api serial communication detailed