The information in this article applies to:
SUMMARYMonitoring system power events from a VxD involves using the _SHELL_HookSystemBroadcast service to install a callback procedure into the broadcast notification chain. WM_POWERBROADCAST messages are used in both APM and ACPI systems to notify applications and drivers of system power events. Use _SHELL_UnhookSystemBroadcast to remove a callback procedure from the broadcast notification chain. Dynamically loaded VxDs should use this service to remove any broadcast callbacks prior to unloading, such as during SYS_DYNAMIC_DEVICE_EXIT. MORE INFORMATIONA WM_POWERBROADCAST message passes the following parameters: dwPowerEvent = (DWORD) wParam;Note that the following sample callback procedure uses the C calling convention:
REFERENCES
Windows 95 DDK: _SHELL_HookSystemBroadcast; _SHELL_UnhookSystemBroadcast
Additional query words:
Keywords : kbmm kbDDK kbWinOS95 |
Last Reviewed: October 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |