I can\'t figure it out how to make it runnig. I understand that I have to create a file in order to open a serial device:
handler = CreateFile(portname, GENERIC_R