Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 6 - Power Manager / Power Manager Reference
Power Manager Dispatch Routines / Controlling the Hard Disk


SetSpindownDisable

You can use the SetSpindownDisable function to disable hard disk spindown.

void SetSpindownDisable(Boolean setDisable);
setDisable
A Boolean that specifies whether the spindown feature is enabled (false) or disabled (true).
DESCRIPTION
The SetSpindownDisable function enables or disables hard disk spindown, depending on the value of setDisable. If the value of setDisable is true, hard disk spindown is disabled; if the value is false, spindown is enabled.

Disabling hard disk spindown affects the SpinDownHardDisk function, as well as the normal spindown that occurs after a period of hard disk inactivity.

ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for SetSpindownDisable is 9 ($09) in the low word of register D0. The Boolean value to set is passed in the high word of register D0.

SEE ALSO
The SpinDownHardDisk function is described on page 6-50.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996