怎么锁鼠标,键盘,怎么解锁呀

fuzq 2003-03-23 01:46:49
如上
...全文
423 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
to:cenlmmx(mm)怎么说中文了,英文很好啊:)
全局的hook必须放在dll中,因此VB也可以调用,用VB调用dll的方法我想楼主是知道的吧?
只是我怀疑这个方法的可行性,我没试过,我想也许你注入的进程会死掉
fuzq 2003-03-26
  • 打赏
  • 举报
回复
好的,,谢谢
cenlmmx 2003-03-24
  • 打赏
  • 举报
回复
同志,你的问题看看MSDN吧.
我一下说不完,篇幅太长.总之 hook在window的SDK中,
vb可以调用,但会很麻烦,用c++会很好.
fuzq 2003-03-23
  • 打赏
  • 举报
回复
那这个hook怎样用的???
wh_keyboard hook 是不是API来的 还是属于系统函数
它有哪些参数 有怎样的返回值 还有 各个参数的意义是怎样用的??
各有什么区别??
fuzq 2003-03-23
  • 打赏
  • 举报
回复

先谢过
不好意思,我是第一次提问 发错了地方
如果我想在VB。NET上 或vb上运用 我该怎么办 我对钓子不明白
cenlmmx 2003-03-23
  • 打赏
  • 举报
回复
The SetWindowsHookEx function installs an application-defined hook procedure into a hook chain. You would install a hook procedure to monitor the system for certain types of events.

You can install a hook procedure by calling the SetWindowsHookEx function and specifying the type of hook calling the procedure, whether the procedure should be associated with all threads in the same desktop as the calling thread or with a particular thread, and a pointer to the procedure entry point.

You can release a thread-specific hook procedure (remove its address from the hook chain) by calling the UnhookWindowsHookEx function, specifying the handle to the hook procedure to release. Release a hook procedure as soon as your application no longer needs it.

1. WH_KEYBOARD Hook(键盘)
2. WH_MOUSE Hook(鼠标)

64,648

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧