• <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.¢% 閱讀(330) 評論(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久久aaa一级毛片| 久久久久久一区国产精品| 狠狠色丁香婷婷久久综合五月| 亚洲伊人久久精品影院| 国产精品久久久久久| 日韩精品无码久久一区二区三| 亚洲精品午夜国产VA久久成人| 久久最新精品国产| 久久久久久伊人高潮影院| 国产精品久久久久aaaa| 伊人久久大香线蕉成人| 久久91精品国产91久久户| 伊人久久大香线蕉AV一区二区| 成人久久精品一区二区三区| 欧美日韩中文字幕久久久不卡 | 久久中文字幕人妻丝袜| 97久久国产亚洲精品超碰热| 日韩一区二区三区视频久久| 精品国产乱码久久久久久郑州公司| 久久人人爽人人精品视频| 精品久久久久久中文字幕| 色狠狠久久AV五月综合| 伊人久久大香线蕉AV一区二区| 精品久久久久久国产三级 | 日韩AV毛片精品久久久| 色偷偷888欧美精品久久久| 亚洲AV无码久久| 亚洲欧美日韩久久精品第一区| 久久久免费观成人影院| 久久夜色精品国产亚洲| 国内精品人妻无码久久久影院 | 久久福利青草精品资源站免费| 亚洲狠狠婷婷综合久久蜜芽 | 69久久精品无码一区二区| 日韩人妻无码一区二区三区久久99| 无码人妻久久一区二区三区蜜桃| 久久性精品| 2020国产成人久久精品|