Intermec PENKEY 6100 Programmer's Reference Manual page 283

Hide thumbs Also See for PENKEY 6100:
Table of Contents

Advertisement

APPENDIX B
// *PwrStat)
//
// Returns current power status from APM.
// Return value of PWR_OK for success, or PWR_FAIL if error (no APM, etc).
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern "C" int FAR PASCAL _export
typedef int (FAR PASCAL *fpGetPowerStatus)
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern "C" int FAR PASCAL _export GetPowerState(int Device)
//
// Returns APM BIOS power state for APM Device.
// is returned.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern "C" int FAR PASCAL _export GetPowerState(int Device);
typedef int (FAR PASCAL *fpGetPowerState)(int Device);
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// extern "C" int FAR PASCAL _export
// unsigned int State)
//
// Sets APM BIOS device "Device" to power state "State".
// failure (No APM, unsupported device or power state) or PWR_OK for success.
//–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
extern "C" int FAR PASCAL _export SetPowerState(unsigned int Device,
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.
// device driver that controls background processing or communications
// peripherals.
//
// EventType Parameter:
//
//
// (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
#define APM_SUSPENDREQUEST
#define APM_SUSPENDRESUME
#define APM_CRITICALRESUME
#define APM_BATLOW
#define APM_PWRCHANGE
#define APM_TIMEUPDATE
#define APM_CRITICALSUSPEND
#define APM_USERSTANDBY
GetPowerStatus(tagPOWER_STATUS far *PwrStat);
(tagPOWER_STATUS far *PwrStat);
SetPowerState(unsigned int Device,
0: Indicates "system" activity.
1: Indicates "user" or input activity.
Common PEN*KEY 6000 Series Information
See NorAPM.H for detailed docs.
If device does not exist, OFF
unsigned int PowerState);
This function is generally called by a
This resets Suspend timeouts.
This resets the Standby
1 // System Standby Request Notification
2 // System Suspend Request Notification
3 // Normal Resume System Notification
4 // Critical Resume System Notification
5 // Battery Low Notification
6 // Power Status Change Notification
7 // Update Time Notification
8 // Critical System Suspend Notification
9 // User System Standby Request Notif.
R
PEN*KEY
6100 Computer Programmer's Reference Guide
Returns PWR_FAIL for
B-3

Advertisement

Table of Contents
loading

Table of Contents