|
Last change
on this file since 577 was 354, checked in by stevenhl, 18 years ago |
|
Import untested baseline cmedia sources, work products and binaries
Binaries and work products should be deleted from repository.
once new builds are verified to work.
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | //----------------------------------------------------------------------//
|
|---|
| 2 | // //
|
|---|
| 3 | // APMCALLS.H //
|
|---|
| 4 | // //
|
|---|
| 5 | // (c) S&T Systemtechnik GmbH //
|
|---|
| 6 | // R. Ihle 11/01 //
|
|---|
| 7 | // //
|
|---|
| 8 | //----------------------------------------------------------------------//
|
|---|
| 9 |
|
|---|
| 10 | #ifndef __APMCALLS_H
|
|---|
| 11 | #define __APMCALLS_H
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 | typedef SHANDLE HAPM;
|
|---|
| 15 |
|
|---|
| 16 | typedef USHORT FAR (*PFNAPMEVENT)(struct _APMIDC_NOTIFY_PKT FAR *pNotifyPkt);
|
|---|
| 17 |
|
|---|
| 18 | BOOL APMAttach(VOID);
|
|---|
| 19 | HAPM APMRegister(PFNAPMEVENT pfnAPMEvent, ULONG ulEventMask, USHORT usDeviceID);
|
|---|
| 20 | BOOL APMDeregister(HAPM hClient);
|
|---|
| 21 | BOOL APMQueryPwrStatus(struct _APMIDC_QSTATUS_PKT FAR *pStatus);
|
|---|
| 22 | BOOL APMSendPowerEvent(USHORT usSubID, USHORT usDeviceID, USHORT usPwrState);
|
|---|
| 23 |
|
|---|
| 24 | #define APM_EVMASK_ENABLE 0x0008 // enable power management
|
|---|
| 25 | #define APM_EVMASK_DISABLE 0x0010 // disable power management
|
|---|
| 26 | #define APM_EVMASK_RESTORE 0x0020 // restore BIOS defaults
|
|---|
| 27 | #define APM_EVMASK_SETPWRSTATE 0x0040 // set power state
|
|---|
| 28 | #define APM_EVMASK_BATTERYLOW 0x0080 // battery low event
|
|---|
| 29 | #define APM_EVMASK_NORM_RESUME 0x0100 // normal suspend resume
|
|---|
| 30 | #define APM_EVMASK_CRIT_RESUME 0x0200 // critical suspend resume
|
|---|
| 31 |
|
|---|
| 32 | #define APM_EVMASK_SUSPENDRESUME 0x0340 // suspend / resume events only
|
|---|
| 33 | #define APM_EVMASK_ALL 0x03f8 // all APM events
|
|---|
| 34 |
|
|---|
| 35 |
|
|---|
| 36 | #endif
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.