Microsoft.com Home | Site Map
Windows
Search Microsoft.com for:
Windows Hardware and Driver Central   *
| WHDC Process Guide | WHDC Site Map
Search WHDC for

WinHEC 2004

Key Support, Keyboard Scan Codes, and Windows

Updated: December 4, 2001
*
On This Page
Scan Codes for Keyboard Power Switches Scan Codes for Keyboard Power Switches
Key Support for Microsoft Windows Operating Systems and Applications Key Support for Microsoft Windows Operating Systems and Applications
USB HID to PS/2 Translation Table USB HID to PS/2 Translation Table

Scan Codes for Keyboard Power Switches

The following defines the correct scan codes for keyboard power switches for OnNow hardware:

Power event 
    Set1:    Make = E0, 5E    Break = E0, DE
    Set2:    Make = E0, 37    Break = E0, F0, 37
Sleep event 
    Set1:    Make = E0, 5F    Break = E0, DF
    Set2:    Make = E0, 3F    Break = E0, F0, 3F
Wake event 
    Set1:    Make = E0, 63    Break = E0, E3
    Set2:    Make = E0, 5E    Break = E0, F0, 5E

The Set 2 break codes also need the 0xE0 prefix, otherwise the system will see the new key going down but see some different key coming up.

Key Support for Microsoft Windows Operating Systems and Applications

Download the PDF file Keyboard Scan Code Specification
(Revision 1.3a; 222 KB self-extracting zip file in Microsoft® Word format; file date: February 23, 1999; revised March 2000) Previously published as "WHQL Keyboard Specification."
Get Office File Viewers

The Keyboard Scan Code Specification details the PS/2 Scan Codes and USB Usage Tables that are validated for compliance to the WHQL testing standard. This document details the alternative make and break PS/2 scan code and USB code response for the Microsoft Windows® Logo Key Application Keys and Advanced Configuration and Power Interface (ACPI) power controls.

USB HID to PS/2 Translation Table

The USB HID to PS/2 Scan Code Translation Table provides a mapping from the HID keyboard/multimedia usages to PS/2.

Download the PDF file Download "USB HID to PS/2 Scan Code Translation Table" in PDF format
(70 KB .pdf file; June 17, 1999; Note: To view this document, it is necessary to use Adobe Acrobat Reader Version 4.0 or later and one of the Asian font packs.)

Download the XLS file Download "USB HID to PS/2 Scan Code Translation Table" in Microsoft Excel format
(63 KB .xls file; June 18, 1999)


 

©2004 Microsoft Corporation. All rights reserved. Terms of Use |Privacy Statement
Microsoft