• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            S.l.e!ep.¢%

            像打了激速一樣,以四倍的速度運轉,開心的工作
            簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            MSDN 中的 MessageLoop

            Posted on 2009-05-01 22:00 S.l.e!ep.¢% 閱讀(333) 評論(0)  編輯 收藏 引用 所屬分類: MulThreads

            int MessageLoop (
            HANDLE* lphObjects, // handles that need to be waited on
            int cObjects // number of handles to wait on
            )
            {
            // The message loop lasts until we get a WM_QUIT message,
            // upon which we shall return from the function.
            while (TRUE)
            {
            // block-local variable
            DWORD result ;
            MSG msg ;

            // Read all of the messages in this next loop,
            // removing each message as we read it.
            while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
            {
            // If it is a quit message, exit.
            if (msg.message == WM_QUIT)
            return 1;
            // Otherwise, dispatch the message.
            DispatchMessage(&msg);
            } // End of PeekMessage while loop.

            // Wait for any message sent or posted to this queue
            // or for one of the passed handles be set to signaled.
            result = MsgWaitForMultipleObjects(cObjects, lphObjects,
            FALSE, INFINITE, QS_ALLINPUT);

            // The result tells us the type of event we have.
            if (result == (WAIT_OBJECT_0 cObjects))
            {
            // New messages have arrived.
            // Continue to the top of the always while loop to
            // dispatch them and resume waiting.
            continue;
            }
            else
            {
            // One of the handles became signaled.
            DoStuff (result - WAIT_OBJECT_0) ;
            } // End of else clause.
            } // End of the always while loop.
            } // End of function.

            ?

            精品乱码久久久久久夜夜嗨| 中文字幕热久久久久久久| 久久国产高潮流白浆免费观看| 蜜臀av性久久久久蜜臀aⅴ| 久久亚洲欧美日本精品| 中文字幕久久亚洲一区| 久久综合狠狠综合久久激情 | yy6080久久| 精品国产一区二区三区久久| 欧美色综合久久久久久| 热久久国产精品| 久久精品一本到99热免费| 久久黄色视频| 国产精品久久久久久| 中文字幕乱码久久午夜| 久久久久久国产精品无码下载| 久久国产亚洲精品无码| 久久久久亚洲AV片无码下载蜜桃| 国产精品VIDEOSSEX久久发布| 人妻丰满AV无码久久不卡| 久久久久久久久66精品片| 国产成人久久久精品二区三区 | 久久人人爽人人爽人人片av高请| 一级做a爱片久久毛片| 国色天香久久久久久久小说 | 久久夜色精品国产噜噜噜亚洲AV | 久久精品日日躁夜夜躁欧美 | 77777亚洲午夜久久多喷| 思思久久99热免费精品6| 久久强奷乱码老熟女| 亚洲午夜精品久久久久久人妖| 97久久久精品综合88久久| 久久国产高潮流白浆免费观看| 久久久噜噜噜久久熟女AA片| 久久久久久综合网天天| 亚洲综合日韩久久成人AV| 无码人妻久久一区二区三区免费丨| 久久午夜夜伦鲁鲁片免费无码影视| 久久99精品国产麻豆宅宅| 香蕉久久av一区二区三区| 亚洲精品乱码久久久久久蜜桃图片|