- Because it's too old, So there is this project.
- Prevent Windows application window from being accidentally closed, Also applicable to UWP apps.
Windows 10
Prevents Windows application windows from being accidentally closed, also works for UWP applications.
C#
Windows 10