Converting scancode to ascii

Miscellaneous Forums/Win32 Discussion/Converting scancode to ascii

I've got this problem with trapping keys. The biggest problem is handling keyboard of various languages. AZERTY, QWERTY and other various ones around the world. I need the ascii character typed, basically. A flawless method that converts scancodes to ascii codes.

So in essence:
- One function that tells me which keyboard layout it is
- One function that converts a scancode into an ascii code by supplying keyboard layout

I suppose I can find that in a windows API, but where to start?

Thanks for any help.

I'm sorry I can't help but I want to add my name to list of people that require this.

Please help!