int ToAscii(
UINT uVirtKey, // virtual-key code
UINT uScanCode, // scan code
CONST PBYTE lpKeyState, // key-state array
LPWORD lpChar, // buffer for translated key
UINT uFlags // active-menu option
);
int ToAsciiEx(
UINT uVirtKey, // virtual-key code
UINT uScanCode, // scan code
CONST PBYTE lpKeyState, // key-state array
LPWORD lpChar, // buffer for translated key
UINT uFlags, // active-menu option
HKL dwhkl // input locale identifier
);
好像是这个,以前看到的,你查一下msdn吧