Intermec 6200 Reference Guide

Page of 410
APPENDIX B
Common PEN*KEY 6000 Series Information
PEN*KEY
R
 6200/6300 Hand-Held Computer Programmer’s Reference Guide    B-7
MB_RETRYCANCEL + MB_ICONINFORMATION);
} // else
 } while (Error == IDRETRY);
  } // then
  else
 MessageBox
(NULL, “Could not get entry point for GetPowerState()!”,
szTitle, MB_OK | MB_ICONEXCLAMATION);
  // Free NorAPM instance.  It stays around since it was already open.
  FreeLibrary(hinstNorAPM);
} // then
else
  MessageBox(NULL, “Could not open NORAPM.DLL!”, szTitle,
MB_OK | MB_ICONEXCLAMATION);
// Exit application
return (0);
} // WinMain
Keyboard Remapping Program
REMAP is a C Windows program that demonstrates a method for remapping the
keyboard.  The sample program REMAP.C and the include files are presented on
the following pages.
Include File: SMM.H
#define MBC
0x80 /* Multiple byte command */
#define RD_EVENT
0x01
#define SMM_SUSPEND
0x02
#define DEV_ENABLE
0x20
#define DEV_DISABLE
0x40
#define KBD_RESTORE
0
#define KEYCLICK
1
#define LCD
2
#define XKBD
3
#define MUP_BEEP
4
#define EL
5
#define DEV_STATUS
0x60
#define SET_TIMER
0x80
/* Device IDs for read device status command */
#define RD_A2D
0x08
#define RD_AOUT
0x10
/* Diagnostic commands */
#define DG_TOGGLE
0
#define DG_READ
1
#define DG_WRITE
2
/* Read write commands */
#define READ_DEVICE
0xc0
#define WRITE_DEVICE
0xd0
#define RW_MB
0
#define RW_781
1
#define RW_FUEL
2
#define RD_ID
3
#define KBD_MACRO
4
#define KBD_DNLD
5
/* Device IDs for set command */
#define SET_VALUE
0xb0
#define CONTRAST_STEP
1
#define BACKLIGHT_STEP
2
#define DUTYA
3
#define DUTYB
4
#define DURATION
5
B. Common PEN*KEY
6000 Series Info.