APPENDIX B
Common PEN*KEY 6000 Series Information
B-4 PEN*KEY
R
6200/6300 Hand-Held Computer Programmer’s Reference Guide
APMCODES.H
// APMCODES.H: Definitions of APM 1.1 event codes used by NORAPM.DLL for
// interaction with BIOS, DOS, and Windows.
// (C) Copyright 1994 by Norand Corporation
// Indicate that this include file has been loaded
#define APMCODES 1
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// APM 1.1 BIOS event codes. These codes are broadcast to DOS TSRs by the
// APM OS Driver.
#define APM_STANDBYREQUEST
1 // System Standby Request Notification
#define APM_SUSPENDREQUEST
2 // System Suspend Request Notification
#define APM_SUSPENDRESUME
3 // Normal Resume System Notification
#define APM_CRITICALRESUME
4 // Critical Resume System Notification
#define APM_BATLOW
5 // Battery Low Notification
#define APM_PWRCHANGE
6 // Power Status Change Notification
#define APM_TIMEUPDATE
7 // Update Time Notification
#define APM_CRITICALSUSPEND
8 // Critical System Suspend Notification
#define APM_USERSTANDBY
9 // User System Standby Request Notif.
#define APM_USERSUSPEND
10 // User System Suspend Request Notif.
#define APM_USERSTANDBYRESUME 11 // User System Standby Resume Notif.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// NORAND APM 1.1 BIOS OEM event codes that are broadcast to DOS.
#define APM_OEM_XKBD
0x0201 // External keyboard detect
#define APM_OEM_CHARGE
0x0202 // External charge detect
#define APM_OEM_POD1
0x0203 // Pod 1 ring detect
#define APM_OEM_POD2
0x0204 // Pod 2 ring detect
#define APM_OEM_EXTRING
0x0205 // External ring detect
#define APM_OEM_PCMCIA
0x0206 // PCMCIA ring detect
#define APM_OEM_ALARM
0x0207 // Real time clock alarm
#define APM_OEM_PENDOWN
0x0208 // Pen down detect
#define APM_OEM_SUSPEND
0x0209 // Suspend detect
#define APM_OEM_RESUME
0x020a // Resume key detect
#define APM_OEM_BUBLOW
0x020b // Backup battery low
#define APM_OEM_MB0
0x020c // Main battery critical
#define APM_OEM_MB10
0x020d // 10 minutes left on bat
#define APM_OEM_MB20
0x020e // 20 minutes left on bat
#define APM_OEM_MB30
0x020f // 30 minutes left on bat
#define APM_OEM_PDOOR
0x0210 // PCMCIA door open detect
#define APM_OEM_IKBD
0x0211 // Internal keyboard detect
#define APM_OEM_PWRFAIL
0x0212 // Powerfail detect
#define APM_OEM_PWRTICK
0x0213 // Charge tick event
#define APM_OEM_EL
0x0214 // Backlight on/off press
#define APM_OEM_BATT_CHANGE
0x0215 // Battery change detected
#define APM_OEM_PWRFAILNEW
0x0216 // Powerfail detect
#define APM_OEM_PWRMSGTXT
0x0280 // Power msg text broadcast.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// Windows APM 1.1 event codes. These events are broadcast to the Windows
// drivers and parent-windows by the Windows APM driver. Note that these
// codes are one less than the corresponding BIOS codes. Also, only 3 codes,
// 1
…
3, are actually defined in the current Windows 3.1Windows.H header file
#define PWR_STANDBYREQUEST
0 // System Standby Request Notification
#define PWR_SUSPENDREQUEST
1 // System Suspend Request Notification
#define PWR_SUSPENDRESUME
2 // Normal Resume System Notification
#define PWR_CRITICALRESUME
3 // Critical Resume System Notification
#define PWR_BATLOW
4 // Battery Low Notification
#define PWR_PWRCHANGE
5 // Power Status Change Notification
#define PWR_TIMEUPDATE
6 // Update Time Notification
#define PWR_CRITICALSUSPEND
7 // Critical System Suspend Notification
#define PWR_USERSTANDBY
8 // User System Standby Request Notification
#define PWR_USERSUSPEND
9 // User System Suspend Request Notification
#define PWR_USERSTANDBYRESUME 10// User System Standby Resume Notification
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// NORAND Windows APM 1.1 OEM event codes. Again, these are one less than
B. Common PEN*KEY
6000 Series Info.