• <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++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            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.

            ?

            欧洲成人午夜精品无码区久久| 亚洲欧美日韩精品久久| 香蕉久久夜色精品国产尤物| 一本色道久久综合亚洲精品| 久久99国产精品久久99果冻传媒| 国产精品成人久久久久久久| 久久综合鬼色88久久精品综合自在自线噜噜 | 精品无码人妻久久久久久| 99久久国产亚洲综合精品| 国产69精品久久久久777| 久久久久这里只有精品| 一本色道久久88—综合亚洲精品| 国产精品免费久久| 99久久人妻无码精品系列| 国内精品伊人久久久影院| 99久久精品国产一区二区三区| 97久久婷婷五月综合色d啪蜜芽 | 国产91久久精品一区二区| 久久婷婷五月综合97色直播| 久久久受www免费人成| 国产精品久久久久久久久鸭| 天堂久久天堂AV色综合| 国产精品99久久久久久宅男小说| 精品乱码久久久久久夜夜嗨| 国产成人久久久精品二区三区| 99久久这里只有精品| 久久精品无码一区二区无码| 无码AV波多野结衣久久| 狠狠精品久久久无码中文字幕| 久久这里有精品| 久久久午夜精品| 无码八A片人妻少妇久久| 久久精品中文字幕一区| 久久久久波多野结衣高潮| 亚洲精品乱码久久久久久久久久久久 | 久久99国产综合精品| 久久久亚洲欧洲日产国码二区| 久久久av波多野一区二区| 久久精品国产91久久综合麻豆自制| 久久国产精品-久久精品| www亚洲欲色成人久久精品|