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.
我有一个 Win32 服务,它需要在服务停止时运行一个 .NET 可执行文件(出于清理原因)。我最近发现清理永远不会在关机时发生,因为进程创建被操作系统阻止。有谁知道一种方法来覆盖它?过程,我正在产卵不是侵入性的,应该只运行几分之一秒。
我能找到的唯一方法是:预先创建一个暂停的子进程,然后在关机时取消暂停它。