Shutdown

Description

Demonstrates the use of a system shutdown handler in an application.

Source Files

Shutdown project source file:

Building the Sample

Build the sample as an .rtss executable binary file.

Running the Sample

  1. Run the sample in the real-time environment.
  2. Test the two types of shutdown behavior by forcing Windows to shut down via the following methods:

NOTE: On Windows 10 and newer versions, the thread will continue to run but no output will appear on the screen.

Remarks

See also Shutdown Handling.

APIs Referenced

RTAPI

Supported Windows API