I suppose you call SetCommTimeouts, though you ommitted it in your code. Zero bytes read doesn't mean error. It's successful ReadFile call with zero
確定! 回上一頁