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

            ?

            久久久久亚洲av毛片大| 国产精品视频久久| 麻豆久久久9性大片| 久久本道久久综合伊人| 亚洲午夜精品久久久久久app| 久久99这里只有精品国产| 亚洲级αV无码毛片久久精品| 97久久国产亚洲精品超碰热| 99久久精品免费观看国产| 国产精品一久久香蕉国产线看观看| 久久精品中文无码资源站| 久久国产精品一区二区| 久久国产乱子伦精品免费午夜| 久久久久99精品成人片欧美| 久久AV高清无码| 久久久久九九精品影院| 久久精品免费一区二区| 新狼窝色AV性久久久久久| 久久这里只有精品久久| 日本五月天婷久久网站| 97精品国产97久久久久久免费 | 国产午夜精品理论片久久| 久久中文字幕人妻熟av女| 99久久伊人精品综合观看| 久久久久久久久无码精品亚洲日韩 | AAA级久久久精品无码片| 亚洲精品国精品久久99热| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 久久久久久毛片免费看| 国产精品99久久免费观看| 久久久久久久女国产乱让韩| 久久精品国产亚洲Aⅴ香蕉| 久久久久久综合一区中文字幕| 久久天堂AV综合合色蜜桃网 | 伊人久久大香线蕉综合Av| 久久久黄片| 久久综合给合综合久久| 亚洲国产成人久久笫一页 | yy6080久久| 久久亚洲日韩看片无码| 人人妻久久人人澡人人爽人人精品 |