When the power off key is pressed, there is a program to prevent shutdown, by controlling the shutdown option in gpedit.msc, there are two different behaviors.
One is an immediate end pop-up window, One is that the shutdown interface appears and the shutdown application interface appears.
I want to close these two behaviors. Prevent pop ups or those two interfaces from appearing
My goal is that when I press the power button, the pop-up window of my application prompts the user whether to shut down, not affected by system behavior
What should I do? Thanks