• <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++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            ShutdownBlockReasonCreate Function

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

            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.
            這個函數只能被創建窗體的線程調用并且傳 hwnd 參數,否則這個函數會失敗并且返回 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.
            如果應用程序開始了一個不能中斷的操作,像取CD or DVD, 此時,應用程序可以調用這個函數,當操作完成時,調用
            ShutDownBlockReasonDestroy() 函數指明系統可以關機了.

            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."
            因為用戶通常急著要關掉系統. 他們可能會花幾秒鐘看下系統顯示的關機理由. 所以,你的‘關機理由’需要簡短明了. 像 '取CD正在處理中...' 比 '這個程序阻止了系統關機,因為取CD正在處理中,不能關閉'要好得多.

            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 以后的版本才支持
            国产精品一久久香蕉产线看| 久久96国产精品久久久| 国产午夜福利精品久久2021| 狠狠色婷婷综合天天久久丁香| 久久亚洲私人国产精品| 亚洲精品国精品久久99热| 久久99久久99小草精品免视看 | 国产成人精品久久亚洲| 免费无码国产欧美久久18| 国内精品久久久久久久影视麻豆| 亚洲精品乱码久久久久久中文字幕 | 久久久精品国产免大香伊| 国产精品99久久精品爆乳| 久久性生大片免费观看性| 国产A级毛片久久久精品毛片| 久久久亚洲精品蜜桃臀| 久久精品夜夜夜夜夜久久| 久久亚洲精品人成综合网| 国产成人综合久久久久久| 亚洲精品乱码久久久久久按摩 | 亚洲国产精品无码久久青草 | 99久久人妻无码精品系列蜜桃| 精品久久久久久无码中文野结衣| 亚洲午夜无码久久久久| 波多野结衣AV无码久久一区| 91精品国产91久久| 免费观看久久精彩视频| 久久香蕉国产线看观看99| 国内高清久久久久久| 久久久久亚洲AV成人网人人软件| 久久久国产精品福利免费| 亚洲国产精品久久电影欧美| 亚洲精品无码久久毛片| 久久成人18免费网站| 国产成人久久久精品二区三区| 久久综合给久久狠狠97色| 伊人久久大香线蕉av不变影院| 久久影视综合亚洲| 色婷婷狠狠久久综合五月| 一本一本久久a久久综合精品蜜桃| 久久精品99无色码中文字幕|