First, there is no priority to close explorer. Second, you can manually end explorer at any time. There is no necessary connection between explorer and shutdown. Third, it is not difficult to intercept the shutdown message. You can search the relevant source code by yourself. Fourth, if you are unable to intercept shutdown messages, you can use Group Policy to add your program to the shutdown script, and the system will automatically call it.
Additional: If there is any consideration to prevent forged shutdown messages, I have an idea, I haven’t tried it yet, I don’t know if it is feasible: intercept all shutdown messages, whether they are true or false, and process them again in the message processing function Call the shutdown API, so that "the fake becomes real"...
First, there is no priority to close explorer.
Second, you can manually end explorer at any time. There is no necessary connection between explorer and shutdown.
Third, it is not difficult to intercept the shutdown message. You can search the relevant source code by yourself.
Fourth, if you are unable to intercept shutdown messages, you can use Group Policy to add your program to the shutdown script, and the system will automatically call it.
Additional:
If there is any consideration to prevent forged shutdown messages, I have an idea, I haven’t tried it yet, I don’t know if it is feasible: intercept all shutdown messages, whether they are true or false, and process them again in the message processing function Call the shutdown API, so that "the fake becomes real"...
What you said above is right, explorer can be terminated at any time, you have to read the documentation