• <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.

            ?

            久久精品二区| 一级做a爰片久久毛片16| 伊人伊成久久人综合网777| 日本久久久久久久久久| 久久亚洲中文字幕精品一区| 无码国产69精品久久久久网站| 国产精品九九九久久九九| 性做久久久久久久久久久| 久久亚洲国产成人精品性色| 久久香蕉一级毛片| 国产成人精品综合久久久| 99久久成人国产精品免费| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区 | 欧美va久久久噜噜噜久久| 国产精品久久久久乳精品爆| 97久久婷婷五月综合色d啪蜜芽| 久久99国产精品久久| 久久久国产99久久国产一| 精品久久久久国产免费 | 久久久青草久久久青草| 国产毛片欧美毛片久久久| 久久久久亚洲精品无码网址| 国产精品一久久香蕉产线看| 伊人久久大香线蕉AV一区二区| 国内精品久久国产大陆| 亚洲人成网亚洲欧洲无码久久| 久久久久香蕉视频| 精品免费久久久久国产一区| 精品久久香蕉国产线看观看亚洲| 无码人妻少妇久久中文字幕蜜桃| 久久经典免费视频| 一级做a爰片久久毛片看看| 久久久无码精品亚洲日韩软件| 国产成人无码精品久久久免费| 久久综合九色综合97_久久久| www性久久久com| 久久精品免费观看| 91性高湖久久久久| 久久久久国产视频电影| 久久久免费观成人影院| 精品一久久香蕉国产线看播放|