Sending WM_CHAR for non english characters

Hi all,

I'm using SendMessage( ... WM_CHAR ...) to simulate key strokes in an external app ( lets say it's notepad ). It works fine for the english characters, but I'm unable to generate non english chars ( for example cyrillic ).
I change the input of the "notepad" from EN to "cyrillic" and then send the WM_CHAR but instead of getting cyrillic chars I get again english.

Any help please ?

10x
kpym

p.s.

here is a sample code:

#include<windows.h>
#include<stdio.h>

int main( int argc, char **argv ){

HWND hWnd;
POINT p = { 100, 100 };



hWnd = WindowFromPoint( p );

// cyrillic 'YA'
SendMessage( hWnd, 0x0102, 0xff, 0x00100001 );
// english 'Q'
SendMessage( hWnd, 0x0102, 0x71, 0x00100001 );

return( 0 );
}
[905 byte] By [KpyM] at [2007-11-19 6:57:30]