- Inside Macintosh: Devices /
- Chapter 6 - Power Manager / Power Manager Reference
- Power Manager Dispatch Routines / Determining the Power Manager Features Available
PMSelectorCount
You can use the PMSelectorCount function to determine which Power Manager dispatch functions are implemented.
short PMSelectorCount();
DESCRIPTION
The PMSelectorCount function returns the number of routine selectors present. Any function whose selector value is greater than the returned value is not implemented.
ASSEMBLY-LANGUAGE INFORMATION
The trap is _PowerMgrDispatch ($A09E). The selector value for PMSelectorCount is 0 ($00) in the low word of register D0. The number of selectors is returned in the low word of register D0.
© Apple Computer, Inc.
3 JUL 1996