HardDiskPowered
You can use theHardDiskPoweredfunction to find out whether the internal hard disk is on.
Boolean HardDiskPowered();DESCRIPTION
TheHardDiskPoweredfunction returns a Boolean value indicating whether or not the internal hard disk is powered up. A value oftruemeans that the hard disk is on, and a value offalsemeans that the hard disk is off.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch($A09E). The selector value forHardDiskPoweredis 6 ($06) in the low word of register D0. The Boolean result is returned in the low word of register D0.