鍵盤記錄支持中文(ZT): http://dev.csdn.net/article/55/55441.shtm
關於中文hook的一些問題的處理: <script language="javascript" type="text/javascript">document.title="關於中文hook的一些問題的處理 - "+document.title</script> http://blog.csdn.net/brain_/archive/2006/01/11/576128.aspx
系統文本輸入的記錄: http://blog.donews.com/zwell/articles/48170.aspx
主要用到以下函數和消息
SetWindowsHookEx(WH_GETMESSAGE,HookProc,hInstance,NULL)
WM_IME_COMPOSITION//輸入法的輸出
hWnd = GetFocus();
hImg = ImmGetContext(hWnd);
strLen = ImmGetCompositionString(hImg, GCS_RESULTSTR,NULL,0);
SecureZeroMemory(str, 100);
strLen = ImmGetCompositionString(hImg, GCS_RESULTSTR, str, strLen);
ImmReleaseContext(hWnd, hImg);
ImmSetCompositionString
WM_CHAR //英文和數字
WM_KEYUP //部分特殊功能鍵