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

            像打了激速一樣,以四倍的速度運(yùn)轉(zhuǎn),開心的工作
            簡(jiǎn)單、開放、平等的公司文化;尊重個(gè)性、自由與個(gè)人價(jià)值;
            posts - 1098, comments - 335, trackbacks - 0, articles - 1
              C++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            ShutdownBlockReasonCreate Function

            Posted on 2010-02-05 11:18 S.l.e!ep.¢% 閱讀(660) 評(píng)論(0)  編輯 收藏 引用 所屬分類: RootKit
            ShutdownBlockReasonCreate Function

            Indicates that the system cannot be shut down and sets a reason string to be displayed to the user if system shutdown is initiated.
            在 shutdown 初始化的時(shí)候,表明系統(tǒng)不能關(guān)機(jī)并且設(shè)置一個(gè)理由用來顯示給用戶看

            Syntax

            C++
            												BOOL WINAPI ShutdownBlockReasonCreate(
              __in  HWND hWnd,
              __in  LPCWSTR pwszReason
            );
            										

            Parameters

            hWnd [in]

            A handle to the main window of the application.
            指向主窗體的句柄

            pwszReason [in]

            The reason the application must block system shutdown. This string will be truncated for display purposes after MAX_STR_BLOCKREASON characters.

            Return Value

            If the call succeeds, the return value is nonzero.

            If the call fails, the return value is zero. To get extended error information, call GetLastError.

            Remarks

            This function can only be called from the thread that created the window specified by the hWnd parameter. Otherwise, the function fails and the last error code is ERROR_ACCESS_DENIED.
            這個(gè)函數(shù)只能被創(chuàng)建窗體的線程調(diào)用并且傳 hwnd 參數(shù),否則這個(gè)函數(shù)會(huì)失敗并且返回 ERROR_ACCESS_DENIED 錯(cuò)誤

            Applications should call this function as they begin an operation that cannot be interrupted, such as burning a CD or DVD. When the operation has completed, call the ShutdownBlockReasonDestroy function to indicate that the system can be shut down.
            如果應(yīng)用程序開始了一個(gè)不能中斷的操作,像取CD or DVD, 此時(shí),應(yīng)用程序可以調(diào)用這個(gè)函數(shù),當(dāng)操作完成時(shí),調(diào)用
            ShutDownBlockReasonDestroy() 函數(shù)指明系統(tǒng)可以關(guān)機(jī)了.

            Because users are typically in a hurry when shutting down the system, they may spend only a few seconds looking at the shutdown reasons that are displayed by the system. Therefore, it is important that your reason strings are short and clear. For example "A CD burn is in progress." is better than "This application is blocking system shutdown because a CD burn is in progress. Do not shut down."
            因?yàn)橛脩敉ǔ<敝P(guān)掉系統(tǒng). 他們可能會(huì)花幾秒鐘看下系統(tǒng)顯示的關(guān)機(jī)理由. 所以,你的‘關(guān)機(jī)理由’需要簡(jiǎn)短明了. 像 '取CD正在處理中...' 比 '這個(gè)程序阻止了系統(tǒng)關(guān)機(jī),因?yàn)槿D正在處理中,不能關(guān)閉'要好得多.

            Requirements

            Minimum supported client Windows?Vista
            Minimum supported server Windows Server?2008
            Header Winuser.h (include Windows.h)
            Library User32.lib
            DLL User32.dll

            Vista & Win2008 以后的版本才支持
            亚洲AV无一区二区三区久久| 久久亚洲精精品中文字幕| 精品久久无码中文字幕| 久久综合九色欧美综合狠狠| 久久国产免费直播| 久久精品无码一区二区三区免费 | 午夜精品久久久久久久| 婷婷国产天堂久久综合五月| 色综合久久夜色精品国产| 亚洲人AV永久一区二区三区久久| 久久久久久一区国产精品| 欧美日韩中文字幕久久久不卡 | 亚洲国产成人久久综合野外| 久久综合九色综合欧美就去吻| 久久免费观看视频| 亚洲第一永久AV网站久久精品男人的天堂AV| 99久久久久| 亚洲人成无码久久电影网站| 热久久最新网站获取| 伊人久久大香线蕉综合Av| 欧美va久久久噜噜噜久久| 精品午夜久久福利大片| 久久精品中文字幕有码| 2020久久精品亚洲热综合一本| 久久人人添人人爽添人人片牛牛| 蜜臀av性久久久久蜜臀aⅴ| 久久er热视频在这里精品| 久久久久亚洲精品天堂久久久久久| 热综合一本伊人久久精品| 久久久久se色偷偷亚洲精品av| 久久婷婷五月综合国产尤物app| 国产成人久久精品区一区二区| 99久久精品免费看国产一区二区三区 | 97久久国产综合精品女不卡 | AA级片免费看视频久久| 一本久久a久久精品综合香蕉| 亚洲va国产va天堂va久久| 久久WWW免费人成—看片| 东方aⅴ免费观看久久av| 日本精品久久久久中文字幕8| 2021国内久久精品|