Get Physical Keyboard Layout Programmatically
问题 Is there a way to programmatically find out what kind of keyboard a computer has (i.e. where keys are located, and what extra keys are present in which locations)? A little error is acceptable, if the keyboard is very non-standard, but in general, the point is to construct an on-screen keyboard-like application that can dynamically draw the keyboard layout on the screen, with high accuracy. 回答1: There is no mechanism by which a keyboard can tell Windows what its physical layout looks like.