当前位置: 代码迷 >> WinCE >> CeRapiInitEx结果错误
  详细解决方案

CeRapiInitEx结果错误

热度:141   发布时间:2016-04-28 13:38:20.0
CeRapiInitEx结果异常
RAPIINIT initMsg;
 initMsg.cbSize = sizeof(RAPIINIT);
 HRESULT hRs = CeRapiInitEx(&initMsg);
 DWORD dwWaitRs = WaitForSingleObject(initMsg.heRapiInit, 2000);
 if ((initMsg.hrRapiInit != S_OK) || (hRs != S_OK) || (dwWaitRs == WAIT_TIMEOUT))
 {
  //失败信息
  return FALSE;
 }
 return TRUE;

通过以上方法判断PPC是否连接正常,第一次没有问题。如果成功后,把PPC拔下来,再次测试是否连接正常,依然显示成功。问题出在哪里?

------解决方案--------------------
不太清楚。帮顶。
  相关解决方案