I am writing my own on screen keyboard.
The only piece missing is the position of each key on the keyboard.
Windows allows you to get the keyboard layout: http://msdn.microsoft.com/en-us/library/ms929433.aspx
But how does one get the position of a key for a given layout?