本人前段时间写了个键盘Hook,但无法返回所截获的按键,哪位高手能帮忙解决一下?(仅在内存内完成,不将返回的内容写进文件或注册表)
解决方案 »
- 求助:这个入门级简单程序的消息为何不响应?求高手!
- CObject类派生的调用InvalidateRect
- 求助如何应用VC的createfile打开文件
- 想拦截TextOut这类的API,记录所有的屏幕输出,有问题。
- 如何在单文档中使用ActiveX控件那?
- 怎样在编辑框里显示一个文本文件?
- 我的OCX组件在VC中已经注册好了,只是在程序中如何调用?100分!急!
- 关于VC编译的怪异问题
- 视频捕捉回调函数
- 一个用ole db调用存储过程时出现的参数问题。请大家帮帮忙,比较急。
- 请问在VC面除了Controls里面列出来默认的控件外,还有别的控件吗?怎样加进来?谢谢
- 正式版Microsoft Visual Studio .NET的开发环境Microsoft2002 Version及Microsoft.NET框架1.0 Version分别是多少?
This will help u
This will help u
I've written a keyboard hook.
I use a program which was written in another language to invoke it.
I passed the handle of my window as value.
And I passed the buffer which was used to receive the return values as a pointer.
The problem was that the handle passed to the hook function successfully ,but the buffer's pointer couldn't pass to the hook function. So I can tell my window the message but my window can't read the values from the buffer.
I had declared the handle and the pointer at the front of all functions in the .cpp(the installhook function and the hook function are in the same .cpp file) or even in the head file.
And the VC 6.0 had display that they were all global !
Why can't a pointer be passed while a value can?