Advertisement
ASP_Volume2 System Services/ Functions #44116

Invoke Windows Shut Down Dialogue

This code causes the windows shut down dialogue to come up(see screenshot).

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
'Simply put this code anywhere in your project
'that you want the windows shut down dialogue box
'to be triggered.
'------------------------------------------------
Dim ExplorerProcess() As Process
ExplorerProcess = Process.GetProcessesByName("explorer")
ExplorerProcess(0).CloseMainWindow()
원본 댓글 (3)
Wayback Machine에서 복구됨