华域总经理:GetLastError()返回87是什么情况?????

来源:百度文库 编辑:高校问答 时间:2024/10/04 16:41:47
if(!WaitCommEvent(m_hCom,&dwMask,&os))
{
DWORD dwError=GetLastError();
if(dwError==ERROR_IO_PENDING)
{
......
}
//GetLastError返回87是什么情况下发生的?
}

基本是是因为系统问题,或者缓冲区没有数据!

参数不正确。