Important: The information in this document is obsolete and should not be used for new development.
HardDiskQRemove
You can use theHardDiskQRemovefunction to discontinue notification of your software when power to the internal hard disk is about to be turned off.
OSErr HardDiskQRemove(HDQueueElement *theElement);
theElement- A pointer to the element for the hard disk power down queue that you wish to remove.
DESCRIPTION
TheHardDiskQRemovefunction removes a queue element installed byHardDiskQInstall. If thehdQTypefield of the queue element is not set toHDPwrQType,HardDiskQRemovesimply returns an error.ASSEMBLY-LANGUAGE INFORMATION
The trap is_PowerMgrDispatch($A09E). The selector value forHardDiskQRemoveis 11 ($0B) in the low word of register D0. The pointer to theHDQueueelement is passed in register A0. The result code is returned in the low word of register D0.RESULT CODES
noErr 0 No error SEE ALSO
TheHDQueueElementstructure is defined in "Hard Disk Queue Structure," on page 6-27.The application-defined hard disk spindown function is described in "Hard Disk Spindown Function," on page 6-66.