Language selection: [日本語(Japanese)]

Restart Manager Test 1.0.3

  • Version 1.0.3.11300
  • Download 20
  • File Size 2.09 MB
  • Create Date December 4, 2018
  • Verify CAPTCHA to Download

Since a newer version was released, Please do not download this version from this page. Please refer app page.

This page is download for Restart Manager Test Tool 1.0.3.

You can download it from "DOWNLOAD" link in "Verify CAPTCHA to Download" above. In the "Verify CAPTCHA to Download", if "I am not a robot" is displayed, please check and select the image with instructions. You can download it by selecting the image correctly.

About this version

This is the first release of this application. In this version we made the following features.

  • Test function of restart manager API
    • Register application restart to Restart Manager (RegisterApplicationRestart)
    • Unregister application restart to Restart Manager (UnregisterApplicationRestart)
    • Register the shutdown block reason (ShutdownBlockReasonCreate)
    • Unregister the shutdown block reason (ShutdownBlockReasonDestroy)
  • Test function for processing when WM_QUERYENDSESSION is received
    • Register application restart to Restart Manager
    • Unregister application restart to Restart Manager
    • Register the shutdown block reason
    • Wait for a certain period of time
    • Set return value
  • Log file creation function

You can check the operation related to the restart manager.

Restart Manager Test 1.0.3 - main window

Features

Main window - upper left area

Buttons in this area can be tested by invoking Restart Manager related APIs individually.

RegisterApplicationRestart()

Call RegisterApplicationRestart() which was introduced in Windows Vista and register the application restart (tool itself).

RegisterApplicationRestart(L"/restart", RESTART_NO_CRASH | RESTART_NO_HANG);

Call with the above arguments. It will not do anything when running on Windows XP.

UnregisterApplicationRestart()

Call UnegisterApplicationRestart() which was introduced in Windows Vista and unregister the application restart (tool itself).

UnregisterApplicationRestart();

Since this API has no arguments, it simply calls it. It will not do anything when running on Windows XP.

ShutdownBlockReasonCreate()

Call ShutdownBlockReasonCreate() which was introduced in Windows Vista and register the reason for blocking shutdown.

RegisterApplicationRestart(hDialogWnd, pszReasonW);

Call with the above arguments. hDialogWnd is set to the window handle of the main window of this tool. pszReasonW is set the text string in the edit box under the button. It will not do anything when running on Windows XP.

ShutdownBlockReasonDestroy()

Call ShutdownBlockReasonDestroy() which was introduced in Windows Vista and unregister the reason for blocking shutdown.

RegisterApplicationRestart(hDialogWnd);

Call with the above arguments. hDialogWnd is set the window handle of the main window of this tool. It will not do anything when running on Windows XP.

Main window - upper right area

The check box in this area allows you to set the action to be taken when the main window (dialog) of this tool receives the WM_QUERYENDSESSION message. When multiple check boxes are checked, they are processed in order from the top in the message handler of the WM_QUERYENDSESSION message.

Call RegisterApplicationRestart()

Call RegisterApplicationRestart () which was introduced in Windows Vista and register the application restart (tool itself).

RegisterApplicationRestart(L"/restart ", RESTART_NO_CRASH | RESTART_NO_HANG);

Call with the above arguments. It will not do anything when running on Windows XP.

Call UnregisterApplicationRestart()

Call UnegisterApplicationRestart() which was introduced in Windows Vista and unregister the application restart (tool itself).

UnregisterApplicationRestart();

Since this API has no arguments, it simply calls it. It will not do anything when running on Windows XP.

Call ShutdownBlockReasonCreate()

Call ShutdownBlockReasonCreate() which was introduced in Windows Vista and register the reason for blocking shutdown.

RegisterApplicationRestart(hDialogWnd, pszReasonW);

Call with the above arguments. hDialogWnd is set to the window handle of the main window of this tool. pszReasonW is set the text string in the edit box on left area. It will not do anything when running on Windows XP.

Wait 20 sec.

Wait 20 seconds in the message handler. In Windows Vista or later, the application must respond to the WM_QUERYENDSESSION message within 5 seconds, so you can test it. Specifically, when you check, call Sleep().

Sleep(20000);

Call with the above arguments.

Return false

Determine the return value of the WM_QUERYENDSESSION message handler. If it is not checked, true is set as return value. If checked, false is set as return value. "true" indicates that the application can be terminated. "false" indicates that the application refused to shut down.

Main window - lower area

Result

In the right edit box, the error code of the last API executed is set. The lower multi-row edit box shows the results of calling each API and the timing of receiving the window message about the restart manager.

Ceate message log file

If checked, it will output to the file the result of calling each API and the timing of receiving the window message about the restart manager. Basically the same as the history displayed in the screen is output to the file. The output file is a file whose name is the same as the EXE file, with the extension ".log" added to the EXE file name.

The output file is created in the same location as the EXE file. The file name is a name with the extension ". Log" added to the EXE file name.


Return to the top page of this app

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.