| ²é¿´: 655 | »Ø¸´: 6 | |||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | |||
| µ±Ç°Ö»ÏÔʾÂú×ãÖ¸¶¨Ìõ¼þµÄ»ØÌû£¬µã»÷ÕâÀï²é¿´±¾»°ÌâµÄËùÓлØÌû | |||
magic7004½ð³æ (Ö°Òµ×÷¼Ò)
|
[½»Á÷]
¡¾Ô´´¡¿¹ØÓÚLow Level Keyboard Hook£¬Íò¶ñµÄSDK°¡~~
|
||
|
½ñÌìÒª×öµãÊÂÇ飬ÐèÒªÆÁ±ÎWin¼ü£¬ÓÚÊÇÏëµ½ÓÃWH_KEYBOARD_LL£¬Ëæ±ã¿´ÁËÏÂVS6.0×Ô´øµÄMSDNÀïLowLevelKeyboardProcµÄÃèÊö£º The LowLevelKeyboardProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function every time a new keyboard input event is about to be posted into a thread input queue. The keyboard input can come from the local keyboard driver or from calls to thekeybd_event function. If the input comes from a call to keybd_event, the input was "injected". ÓÚÊÇдÁËÀàËÆÏÂÃæµÄ´úÂ룺 void f() { HHOOK hHook = NULL; HANDLE hThread = NULL; __try { hHOOK = SetWindowHookExhInstance,WH_KEYBOARD_LL,LowLevelKeyboardProc,0); if£¨NULL == hHook) __leave; hThread=(HANDLE) _beginthread(.......); if ((HANDLE)1 == hThread) __leave; WaitForSingleObject(hThread); } __finally { if (NULL != hThread) CloseHandle(hThread); if (NULL != hHook) UnhookWindowsHookEx(hHook); } } ½á¹û·¢ÏÖ£¬°²×°µÄHOOK²»Æð×÷Óã¬Ñо¿Á˺ܾÃÒ²²»Ã÷°×Ôõô»ØÊ£¬ÕýÔÚÓôÃÆÖУ¬Í»È»¿´µ½Win2K3µÄSDK DocumentationÀï¶ÔLowLevelKeyboardProcµÄÃèÊöÊÇ£º The LowLevelKeyboardProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. The system calls this function every time a new keyboard input event is about to be posted into a thread input queue. The keyboard input can come from the local keyboard driver or from calls to the keybd_event function. If the input comes from a call to keybd_event, the input was "injected". However, the WH_KEYBOARD_LL hook is not injected into another process. Instead, the context switches back to the process that installed the hook and it is called in its original context. Then the context switches back to the application that generated the event. Ìì°¡£¬Æ½°×Î޹ʵĶà³öÀ´Ò»¶Î£¬ÕæÊÇÍò¶ñµÄSDK°¡~~£¡ |
» ²ÂÄãϲ»¶
ÊýÒ»Ó¢Ò»271ר˶£¨085401£©Çóµ÷¼Á£¬¿É¿ç
ÒѾÓÐ8È˻ظ´
295Çóµ÷¼Á
ÒѾÓÐ4È˻ظ´
0856Çóµ÷¼Á
ÒѾÓÐ5È˻ظ´
²ÄÁÏѧ˶333Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
299Çóµ÷¼Á
ÒѾÓÐ6È˻ظ´
Ò»Ö¾Ô¸Ö£ÖÝ´óѧ£¬080500ѧ˶£¬×Ü·Ö317·ÖÇóµ÷¼Á
ÒѾÓÐ6È˻ظ´
289Çóµ÷¼Á
ÒѾÓÐ12È˻ظ´
070305¸ß·Ö×Ó»¯Ñ§ÓëÎïÀí 304·ÖÇóµ÷¼Á
ÒѾÓÐ6È˻ظ´
0703»¯Ñ§µ÷¼Á£¬Çóµ¼Ê¦ÊÕ
ÒѾÓÐ10È˻ظ´
¸÷λÀÏʦºÃ£¬ÎÒµÄһ־ԸΪ±±¾©¿Æ¼¼´óѧ085601²ÄÁÏר˶
ÒѾÓÐ5È˻ظ´

ľҶÇå·ç
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 18 (СѧÉú)
- ½ð±Ò: 4724.6
- ºì»¨: 9
- Ìû×Ó: 364
- ÔÚÏß: 38.2Сʱ
- ³æºÅ: 276214
- ×¢²á: 2006-09-02
- רҵ: ¼ÆËã»úÈí¼þ
¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
|
ºÇºÇ£¬ÊÇѽ£¬ÎÒ´ó¶þµÄʱºò°ïÀÏʦ×öÏîĿΪÁËÆÁ±ÎÕâ¸ö×éºÏ¼üŪÁËºÃ¾Ã²ÅÆÁ±Îµô |

4Â¥2009-09-10 21:36:48
ľҶÇå·ç
ľ³æ (ÕýʽдÊÖ)
- Ó¦Öú: 18 (СѧÉú)
- ½ð±Ò: 4724.6
- ºì»¨: 9
- Ìû×Ó: 364
- ÔÚÏß: 38.2Сʱ
- ³æºÅ: 276214
- ×¢²á: 2006-09-02
- רҵ: ¼ÆËã»úÈí¼þ
¡ï ¡ï ¡ï
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
wangen994(½ð±Ò+2,VIP+0):ÐÁ¿àÁË£¬¼ÓÓÍ 9-10 20:35
Сľ³æ(½ð±Ò+0.5):¸ø¸öºì°ü£¬Ð»Ð»»ØÌû½»Á÷
wangen994(½ð±Ò+2,VIP+0):ÐÁ¿àÁË£¬¼ÓÓÍ 9-10 20:35
| µ¥¶ÀÆÁ±ÎÒ»¸ö¼ü¶¼»¹ºÃ£¬ÆÁ±Îctr+alt+del±È½ÏÄÑ |

2Â¥2009-09-10 18:54:17
magic7004
½ð³æ (Ö°Òµ×÷¼Ò)
- ³ÌÐòÇ¿Ìû: 2
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 444
- ºì»¨: 4
- Ìû×Ó: 3278
- ÔÚÏß: 156.2Сʱ
- ³æºÅ: 482895
- ×¢²á: 2007-12-26
- ÐÔ±ð: GG
- רҵ: »¯Ñ§¹¤³Ì
¡ï ¡ï
wangen994(½ð±Ò+2,VIP+0):»¶Ó³£À´³ÌÐòÈí¼þ°æ 9-10 20:35
wangen994(½ð±Ò+2,VIP+0):»¶Ó³£À´³ÌÐòÈí¼þ°æ 9-10 20:35
| Ctr+Alt+DelÊÇWinlogonµÄÈȼü£¬WinlogoNÊÇSYSTEMµÄ½ø³Ì£¬Ëü²»ÔÚµ±Ç°Óû§µÄ»á»°ÖУ¬»úÖÆ²»Ò»ÑùµÄÀ²¡£ |

3Â¥2009-09-10 19:48:13
magic7004
½ð³æ (Ö°Òµ×÷¼Ò)
- ³ÌÐòÇ¿Ìû: 2
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 444
- ºì»¨: 4
- Ìû×Ó: 3278
- ÔÚÏß: 156.2Сʱ
- ³æºÅ: 482895
- ×¢²á: 2007-12-26
- ÐÔ±ð: GG
- רҵ: »¯Ñ§¹¤³Ì

5Â¥2009-09-11 00:04:32














»Ø¸´´ËÂ¥