C# Windows application prevents Windows from shutting down / logging off

前端 未结 4 1977
后悔当初
后悔当初 2021-01-06 09:07

I have written a C# Windows Forms application, not a service (it is only used when the user is logged in and has a graphical user interface) that has a background thread run

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-06 09:43

    I think Capture console exit C# should also be usable in your scenario.

    Apart from that, maybe it is sufficient to set up your thread as background thread?

提交回复
热议问题