Use overlapped I/O. If you open port for overlapped I/O and call WaitCommEvent with pointer to OVERLAPPED structure,
確定! 回上一頁