I am trying to receive the keyboard layout. I have written a keylogger, which is coming on nicely, but one feature i want it to have is to get the keyboard layout. As in the United Kingdom the @ and " are the other way round to those in America, and currently my keylogger will get this wrong on an American Keyboard.

Does anyone have any suggestions, i couldn't find the API for it.

Darren.