是關閉.exe有必要關閉窗戶嗎?

是關閉.exe在關閉Windows時是必要的,還是隻是用來關閉Windows的一部分?是否使用了其他檔案和/或程序?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。...

是關閉.exe有必要關閉窗戶嗎?

是關閉.exe在關閉Windows時是必要的,還是隻是用來關閉Windows的一部分?是否使用了其他檔案和/或程序?今天的超級使用者問答帖子回答了一位好奇的讀者的問題。

今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。

問題

超級使用者讀者Mukul Kumar想知道關閉.exe是關閉Windows所必需的:

Is the file C:\Windows\System32\shutdown.exe necessary to shut down or restart Windows?

是關閉.exe是否需要關閉或重新啟動Windows?

答案

超級使用者貢獻者JdeBP為我們提供了答案:

Your question of course originates from your answer at StackExchange, in particular from kinokijuf’s comment upon the initial revision of your answer.

As kinokijuf said, Windows is not Unix. On Unices and Linux, shutdown is indeed involved in the full shut down process. It is the program that sends regular warning messages to logged-in users and that writes the /run/nologin file to prevent further logging-on a short while before the scheduled shut down time.

On Windows NT, this is not the case.

The “shut down” action on the “power button” on the Windows Explorer Start menu, the “shut down” menu option in Task Manager, REBOOT /S in TCC or Take Command, and other application programs that allow you to shut the system down all initiate shut down by directly calling one of two Win32 API calls: InitiateSystemShutdownEx() or ExitWindowsEx(). They do not do things indirectly by running the shut down program. That actually needs more code to do than just calling the Win32 API call. The shut down program, when one is doing a local shut down, calls those same Win32 API calls too.

It is actually winlogon, csrss, and **ss that are the programs that shut down Windows NT. In particular, it is winlogon that does the main work of processing deferred shut down requests.

Further Reading


有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-11 10:52
  • 閱讀 ( 23 )
  • 分類:網際網路

你可能感興趣的文章

7個windows工作管理員程序,您永遠不應該終止

... 它的兩個最關鍵的角色是關閉Windows和啟動conhost.exe程序,啟動命令提示符。這聽起來可能不多,但這是一個至關重要的過程。如果有什麼事情搞砸了,而這個過程在啟動時沒有執行,您將看到一...

  • 發佈於 2021-03-13 00:03
  • 閲讀 ( 54 )

管理和控制windows關閉的4個工具

...將向您展示一些工具,幫助您阻止、自動化、記錄和加速關閉過程。下面提供的所有程式都是免費的、輕量級的,這意味著它們不會使系統資源過載。 ...

  • 發佈於 2021-03-13 02:27
  • 閲讀 ( 37 )

7個奇怪的視窗功能,會讓你疑惑

...統中斷給人的印象是你的電腦需要學習一些禮儀。如果您關閉此服務,Windows是否會停止中斷您安裝更新之類的操作? ...

  • 發佈於 2021-03-13 02:39
  • 閲讀 ( 49 )

如何關閉windows10:7提示和技巧

Windows從一開始就可以關閉。你可能已經做過幾千次了。但是,你知道所有不同的方法和技巧,以最大限度地提高效率和定製它充分發揮潛力?我們要教你怎麼做。 ...

  • 發佈於 2021-03-13 03:25
  • 閲讀 ( 43 )

關閉Windows10膝上型電腦螢幕的7種方法

... 但別擔心,還是可以關閉膝上型電腦螢幕的。也許更令人驚訝的是,實現這一點有多種方法——實際上有七種方法。繼續閱讀,學習如何關閉膝上型電腦螢幕。 ...

  • 發佈於 2021-03-14 02:08
  • 閲讀 ( 72 )

12+自定義windows鍵盤快捷鍵,適合你的極客

... 用快捷方式關閉 ...

  • 發佈於 2021-03-16 17:33
  • 閲讀 ( 49 )

加拿大netflix的競爭對手shomi正在關閉

Shomi,加拿大對Netflix的迴應,正在關閉。最終,Netflix這個巨人被證明太受歡迎了,所以Shomi將於2016年11月30日關門。 ...

  • 發佈於 2021-03-17 08:21
  • 閲讀 ( 31 )

Windows10中釋放磁碟空間的6個技巧

... 型別powercfg.exe檔案-h關閉並按回車鍵。就這樣,你不會看到通知或確認。 ...

  • 發佈於 2021-03-17 16:47
  • 閲讀 ( 45 )

如何在沒有工作管理員的情況下強制關閉程式

想學習如何強制關閉程式嗎?本文介紹了最好的Windows程式**,從最簡單的到最有效的。 ...

  • 發佈於 2021-03-18 04:22
  • 閲讀 ( 46 )

如何禁用microsoft office上載中心

... 如何關閉microsoft上載中心 ...

  • 發佈於 2021-03-20 03:33
  • 閲讀 ( 59 )
gp694216746
gp694216746

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦