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

            ?

            午夜精品久久影院蜜桃| 97精品伊人久久大香线蕉app| 久久AV高潮AV无码AV| 一级做a爰片久久毛片毛片| 国内精品久久久久影院老司 | 99久久精品免费看国产免费| 国产精品福利一区二区久久| 久久国产乱子精品免费女| 久久人人爽人人爽人人片AV麻豆| 久久久久se色偷偷亚洲精品av| 久久天天躁夜夜躁狠狠躁2022| 久久强奷乱码老熟女网站 | 亚洲国产精久久久久久久| 久久精品一区二区三区中文字幕| 欧美日韩精品久久免费| 99久久国产热无码精品免费久久久久| 久久精品99无色码中文字幕| 久久久久久国产精品无码超碰| 欧洲国产伦久久久久久久| 久久精品免费观看| 99精品国产在热久久无毒不卡| 国产偷久久久精品专区| 亚洲v国产v天堂a无码久久| 麻豆国内精品久久久久久| 久久婷婷五月综合色99啪ak| 精品欧美一区二区三区久久久| 日本福利片国产午夜久久| 欧美777精品久久久久网| 2022年国产精品久久久久| 久久99国产亚洲高清观看首页| 亚洲精品无码久久千人斩| 日韩人妻无码精品久久久不卡| 久久久久人妻精品一区二区三区| 一本久久知道综合久久| 精品久久8x国产免费观看| 久久久久国产精品三级网| 亚洲va国产va天堂va久久| 久久人妻少妇嫩草AV无码专区| 久久精品国产亚洲欧美| 久久国产色av免费看| Xx性欧美肥妇精品久久久久久|