[This is preliminary documentation and subject to change.]
Best Practice (Designed for Microsoft® Windows® Logo)
Presentation applications should call SetThreadExecutionState when switching into and out of slide-show mode.
This best practice allows the operating system to keep the computer awake and the display turned on while the event is being handled. The operating system can then put the computer to sleep immediately thereafter.
For a description of pretesting you can do to ensure that your application provides proper ACPI/OnNow support, see Pretesting ACPI/OnNow support.
For more information about the OnNow initiative and for OnNow technical specifications, see http://www.microsoft.com/hwdev/onnow.htm.