
APPENDIX B
Common PEN*KEY 6000 Series Information
PEN*KEY
R
6100 Computer Programmer’s Reference Guide B-3
// *PwrStat)
//
// Returns current power status from APM. See NorAPM.H for detailed docs.
// Return value of PWR_OK for success, or PWR_FAIL if error (no APM, etc).
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” int FAR PASCAL _export
GetPowerStatus(tagPOWER_STATUS far *PwrStat);
typedef int (FAR PASCAL *fpGetPowerStatus)
(tagPOWER_STATUS far *PwrStat);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” int FAR PASCAL _export GetPowerState(int Device)
//
// Returns APM BIOS power state for APM Device. If device does not exist, OFF
// is returned.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” int FAR PASCAL _export GetPowerState(int Device);
typedef int (FAR PASCAL *fpGetPowerState)(int Device);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” int FAR PASCAL _export
SetPowerState(unsigned int Device,
// unsigned int State)
//
// Sets APM BIOS device “Device” to power state “State”. Returns PWR_FAIL for
// failure (No APM, unsupported device or power state) or PWR_OK for success.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” int FAR PASCAL _export SetPowerState(unsigned int Device,
unsigned int PowerState);
typedef int (FAR PASCAL *fpSetPowerState)(int Device, int PowerState);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern “C” void FAR PASCAL _export SystemActivity(int EventType)
//
// Call this function to indicate system or user activity and hold off standby
// (backlight) and suspend timeouts. This function is generally called by a
// device driver that controls background processing or communications
// peripherals.
//
// EventType Parameter:
// 0: Indicates “system” activity. This resets Suspend timeouts.
// 1: Indicates “user” or input activity. This resets the Standby
// (backlight), and Suspend timeouts.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern “C” void FAR PASCAL _export SystemActivity(int EventType);
typedef void (FAR PASCAL *fpSystemActivity)(int EventType);
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.
B. Common PEN*KEY
6000 Series Info.
Содержание PEN*KEY 6100
Страница 1: ...PEN KEYR 6100 Computer PROGRAMMER S REFERENCE GUIDE P N 977 054 001 Revision B December 2000 ...
Страница 14: ...CONTENTS xii PEN KEYR 6100 Computer Programmer s Reference Guide ...
Страница 22: ...Preface 8 PEN KEYR 6100 Computer Programmer s Reference Guide PREFACE ...
Страница 112: ...SECTION 4 Power Management 4 10 PEN KEYR 6100 Computer Programmer s Reference Guide 4 Power Management ...
Страница 318: ...GENERAL INDEX Index 6 PEN KEYR 6100 Computer Programmer s Reference Guide ...