Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Version: 1.0

Posted: 2003-01-14

Build Requirements: N/A

Runtime Requirements: Carbon System 7.5

View Source Code:

Download Sample (“NoPowerOffKey.zip”, 11.0K)
Download Sample (“NoPowerOffKey.dmg”, 70.7K)


NoPowerOffKey is a sample extension to disable the power-off key. Starting with System 7.5, you can turn off power by pressing the power key, just as you turn on the Macintosh by pressing the power key. This behavior isn't appropriate for some classroom or kiosk settings. Starting with System 7.5.3, there is a programmatic way to turn off the power-off key behavior. This sample uses that call if it is available. This is the technique recommended by DTS. However if the call is unavailable, the sample patches Alert. NOTE: DTS does NOT recommend the patch on Alert, but realizes there may be an unavoidable reason to consider it. Requirements: System 7.5 Keywords: Power Key, kiosk, NoPowerOffKey

Document Revision History

Date Notes
2003-01-14First Version

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.