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

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

            ShutdownBlockReasonCreate Function

            Posted on 2010-02-05 11:18 S.l.e!ep.¢% 閱讀(665) 評論(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 初始化的時候,表明系統(tǒng)不能關(guān)機并且設(shè)置一個理由用來顯示給用戶看

            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.
            這個函數(shù)只能被創(chuàng)建窗體的線程調(diào)用并且傳 hwnd 參數(shù),否則這個函數(shù)會失敗并且返回 ERROR_ACCESS_DENIED 錯誤

            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)用程序開始了一個不能中斷的操作,像取CD or DVD, 此時,應(yīng)用程序可以調(diào)用這個函數(shù),當(dāng)操作完成時,調(diào)用
            ShutDownBlockReasonDestroy() 函數(shù)指明系統(tǒng)可以關(guān)機了.

            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."
            因為用戶通常急著要關(guān)掉系統(tǒng). 他們可能會花幾秒鐘看下系統(tǒng)顯示的關(guān)機理由. 所以,你的‘關(guān)機理由’需要簡短明了. 像 '取CD正在處理中...' 比 '這個程序阻止了系統(tǒng)關(guān)機,因為取CD正在處理中,不能關(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 以后的版本才支持
            国产精品一久久香蕉产线看| 久久青青草原国产精品免费 | 久久99精品久久久久久噜噜| 亚洲精品高清一二区久久| 手机看片久久高清国产日韩| 五月丁香综合激情六月久久| 品成人欧美大片久久国产欧美| 久久国产精品99久久久久久老狼 | 中文成人无码精品久久久不卡 | 久久婷婷五月综合成人D啪 | 久久伊人五月丁香狠狠色| 亚洲AV日韩精品久久久久久久| 久久国产精品99精品国产| 国产综合免费精品久久久| 久久精品中文无码资源站| 超级碰久久免费公开视频| 日韩乱码人妻无码中文字幕久久 | 久久久久九九精品影院| 久久天天躁狠狠躁夜夜avapp| 丁香五月网久久综合| 久久99热这里只频精品6| 国内精品久久久久伊人av| 久久久久亚洲国产| 国产免费久久精品丫丫| 99国产精品久久| 国内精品久久久久影院日本| 亚洲精品乱码久久久久久中文字幕 | 91精品婷婷国产综合久久| 伊人久久大香线蕉综合热线| 国产福利电影一区二区三区久久久久成人精品综合 | 亚洲综合日韩久久成人AV| 久久亚洲国产精品一区二区| 色欲av伊人久久大香线蕉影院| 久久笫一福利免费导航| 2021久久国自产拍精品| 欧洲精品久久久av无码电影| 国色天香久久久久久久小说| 久久精品国产乱子伦| 亚洲精品无码专区久久久 | 国产精品久久久久久久午夜片| 亚洲色婷婷综合久久|