CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  网络编程

GetQueuedCompletionStatus在什么状况下会返回0。。。。。。。。。

楼主jingtan(双塔高,百花艳)2005-01-03 12:39:41 在 VC/MFC / 网络编程 提问

请高手讲详细点啦, 问题点数:20、回复次数:2Top

1 楼click2004(大家好)回复于 2005-01-04 12:34:57 得分 2

^Top

2 楼SmallBigCat(乱花渐欲迷人眼)回复于 2005-01-04 14:10:59 得分 18

If   *lpOverlapped   is   NULL   and   the   function   does   not   dequeue   a   completion   packet   from   the   completion   port,   the   return   value   is   zero.   The   function   does   not   store   information   in   the   variables   pointed   to   by   the   lpNumberOfBytes   and   lpCompletionKey   parameters.   To   get   extended   error   information,   call   GetLastError.   If   the   function   did   not   dequeue   a   completion   packet   because   the   wait   timed   out,   GetLastError   returns   WAIT_TIMEOUT.  
   
  If   *lpOverlapped   is   not   NULL   and   the   function   dequeues   a   completion   packet   for   a   failed   I/O   operation   from   the   completion   port,   the   return   value   is   zero.   The   function   stores   information   in   the   variables   pointed   to   by   lpNumberOfBytes,   lpCompletionKey,   and   lpOverlapped.   To   get   extended   error   information,   call   GetLa   stError.  
   
  If   a   socket   handle   associated   with   a   completion   port   is   closed,   GetQueuedCompletionStatus   returns   ERROR_SUCCESS,   with   lpNumberOfBytes   equal   zero.  
  Top

相关问题

  • GetQueuedCompletionStatus返回FALSE是什么原因?
  • 如何正确处理GetQueuedCompletionStatus返回的错误代码995?
  • 为什么返回是-1????????????/
  • 返回值是什么?
  • date()函数返回什么?
  • ReadFile超时返回什么?
  • AfxGetApp()返回的是什么???
  • SendMessage什么时候返回?
  • poll为什么不返回?
  • 在重庆的it是什么状况啊?

关键词

  • null
  • getqueuedcompletionstatus
  • lpnumberofbytes
  • completion
  • dequeues
  • lpoverlapped
  • lpcompletionkey
  • getlasterror
  • packet
  • port

得分解答快速导航

  • 帖主:jingtan
  • click2004
  • SmallBigCat

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo