Is anyone aware of a method to determine the actual *physical* layout
of the keyboard in use on a Windows XP machine? - I've played around
with WMI and the GetKeyboardLayout APIs, but they appear to merely
return the keyboard layout assigned within the OS (or the generic
keyboard type) - what I need to be able to do is differenciate
between, say, a physical QWERTY keyboard and a AZERTY keyboard.
The best solution would be one that configures the OS to the physical
key layout prior to login (ie. perhaps runs as a service), but any
pointers to programatically determining the physical layout at any
stage would be appreciated.
The preferred sequence of events would be something similar to:
1. XP boots
2. Physical keyboard detected - ie. an "AZERTY" keyboard is plugged in
3. Appropriate keyboard layout is programatically loaded
....
....
The goal here is to enable a batch of XP PCs loaded with the same
image to correctly load the appropriate keyboard layout without user
interaction depending upon whether a QWERTY or AZERTY keyboard is
connected..
thanks
John
|