Hi
I need a remote display , which in the
directory:\WINCE420\PUBLIC\COMMON\OAK\DRIVERS\CERDISP\CERDISP. I want to use
the
remote contol device keyboard same as keyboard on the local device. for this
i used the cerhost.exe in the pc,and open a
wordPad file in wince device.I am able to successfully move the
right,left,up,down,delete,page up,page down,home,enter in the opened
file just as i do in pc,but i can't insert any other char and i am sure the
wordpad file has the focus.the following code is some of
cerdisp.c
case WM_SYSKEYUP:
case WM_SYSKEYDOWN:
if (recv (Sock, (char *)MouseData, sizeof(USHORT), 0) == sizeof(USHORT)) {
dwFlags = ((WM_KEYUP == Cmd) || (WM_SYSKEYUP == Cmd)) ? KEYEVENTF_KEYUP : 0;
// No scancode data.
RETAILMSG(1,(TEXT("%x,newdwFlags=%d\r\n"),MouseData[0],dwFlags));
keybd_event ((BYTE)MouseData[0], 0, dwFlags, 0);
}
break;
I am able to successfully capture the keyboard event and display with
UART,all Virtual key are right,but the system just deal the
right,left,up,down,delele,page up,page down,home,enter and tab.
Question:
1. which function will be called in the kernel by keybd_event?
2.how can i synthesizes all keystroke?