win32process.SetProcessShutdownParameters
SetProcessShutdownParameters(Level, Flags)
Sets shutdown priority and flags for current process
Parameters
Level : int
Priority, higher means earlierFlags : int
Currently only SHUTDOWN_NORETRY validComments
Ranges are 000-0FF Reserved by windows, 100-1FF Last, 200-2FF Middle, 300-3FF First, 400-4FF Reserved by windows