Retrieves the shutdown parameters for the currently calling process
#include <WinAPISys.au3>
_WinAPI_GetProcessShutdownParameters (  )
| Success: | The shutdown priority level (see _WinAPI_SetProcessShutdownParameters()). If @extended flag is set, a retry dialog box for the user will be display.  | 
| Failure: | Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information. | 
_WinAPI_SetProcessShutdownParameters
Search GetProcessShutdownParameters in MSDN Library.