When I try to write a hyperterm connected to virtual port from my app, I cannot write unless I open the COMM device (createfile) using FILE_FLAG_OVERLAPPED. I am trying to perform synchronous I/O and I think FILE_FLAG_OVERLAPPED attribute is not needed.
// open COMM device
FComHandle = CreateFile(szPort, GENERIC_READ | GENERIC_WRITE,
0, // exclusive access
NULL, // no security attrs
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_OVERLAPPED,// overlapped I/O
If I omit the FILE_FLAG_OVERLAPPED, I am unable to perform any writes.
Is this known issue? Please help.