system-shutdown
c# windows can't close the app in the shutdown
I have this problem: I built an application in c# .net 2.0 that is on the tray bar and everything works fine: if I click the close menu (that i\'ve added) I call Close(); of the main form and 开发者_[详细]
2023-04-04 06:41 分类:问答Hooking up into OS shutdown event in .NET WPF-Application on Win7 x64?
This seems to be mission impossible? According to the comments on this page: http://msdn.microsoft.com/en-us/library/system.windows.application.ex开发者_Python百科it.aspx , others also have trouble ar[详细]
2023-03-26 08:51 分类:问答How to detect Windows shutdown or logoff
I need to detect when Windows is shutdown (or restarted) or wh开发者_StackOverflow中文版en the user is logging off. I need to properly close the application before the application is closed.[详细]
2023-03-22 05:08 分类:问答Run process during windows shutdown
I have a Win32 service, that needs to run a .NET executabl开发者_开发问答e on service stop (for cleanup reasons). I recently discovered that the cleanup never happens on shutdown, because the process[详细]
2023-03-21 17:52 分类:问答NOT prevent windows from shutting down OnCloseQuery
I have an application that hides itself on closing by the red cross. User can exit it by right-clicking tray icon and choosing Exit. But it would apparently block windows from shutting down, so I made[详细]
2023-03-17 18:32 分类:问答C# Application not exiting on Shutdown (sometimes)
My application prevents windows shutting down, but only on some computers, and not all the time. Its a little tricky to debug.[详细]
2023-03-01 16:15 分类:问答Java - shutdown computer after program run [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Shutting down a computer using Java[详细]
2023-02-28 18:09 分类:问答Detect pending linux shutdown
Since I install pending updates for my Ubuntu server as soon as possible, I have to restart my linux server quite often. I\'m running an webapp on that server and would like to warn my users about the[详细]
2023-02-11 21:20 分类:问答C# - How to detect a Windows shutdown/logoff and cancel that action (after asking the user)
Some explanation: for a project I\'m working on I have to write a program that is running in the background, detects changes to files, and uploads the modified files to a web service to mak开发者_运维[详细]
2023-02-03 02:06 分类:问答Detecting windows shutdown event
I have a windows Service always running once PC started, how would i detect using .NET 3.5 or WMI, when the user or some other application/process has requested a shutdown or reboot in wind开发者_JS百[详细]
2023-01-06 03:25 分类:问答