Posted on 2010-01-13 21:31
S.l.e!ep.¢% 阅读(643)
评论(0) 编辑 收藏 引用 所属分类:
RootKit
KBDLLHOOKSTRUCT* pStruct = (KBDLLHOOKSTRUCT*)lParam;
if (pStruct->vkCode == 'A')
{
if (wParam == 256)
{
keybd_event('B', MapVirtualKey('B', 0), 0, 0);//键下键
}
if (wParam == 257)
{
keybd_event('B', MapVirtualKey('B', 0), KEYEVENTF_KEYUP, 0);//放开键。
}
return TRUE;
}