Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
NoPowerOffKey
Last Revision: | Version 1.0, 2003-01-14 First Version |
Build Requirements: | |
Runtime Requirements: | Carbon System 7.5 |
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
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14