Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想捕捉 Windows 的注销事件并在注销时自动终止程序。
如何在 Java 中做到这一点?
详细信息:我有一个程序在用户登录 Windows 时运行,一旦用户注销或锁定计算机,我需要停止它。
我应该怎么办?