• <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.¢% 閱讀(322) 評論(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久久久久中文字幕 | 久久久久免费精品国产| 亚洲中文字幕无码久久2017| 9久久9久久精品| 久久国产免费| 久久综合香蕉国产蜜臀AV| 久久国产成人精品麻豆| 色婷婷久久久SWAG精品| 国产产无码乱码精品久久鸭 | 久久777国产线看观看精品| 久久婷婷人人澡人人| 成人国内精品久久久久影院| 香蕉aa三级久久毛片| 国产精品免费久久久久久久久| 国产激情久久久久久熟女老人| 一本大道久久a久久精品综合| 亚洲∧v久久久无码精品| 人妻丰满?V无码久久不卡| 狠狠色婷婷综合天天久久丁香| 国内精品伊人久久久久777| 久久免费大片| 久久久久国产一区二区三区| 久久中文娱乐网| 久久精品国产亚洲麻豆| 久久久一本精品99久久精品88 | 91精品国产高清91久久久久久| 久久久久久伊人高潮影院| 最新久久免费视频| 欧美色综合久久久久久| 老司机午夜网站国内精品久久久久久久久| 久久久精品2019免费观看| 亚洲精品乱码久久久久久按摩| 麻豆精品久久久久久久99蜜桃| 青青热久久国产久精品| 午夜精品久久久久久影视777| 久久久久亚洲?V成人无码| 精品99久久aaa一级毛片| 久久久久国产一区二区| 偷窥少妇久久久久久久久| 午夜精品久久久久久毛片| 一本久久知道综合久久|