ymq
ymq
驱动牛犊
驱动牛犊
  • 注册日期2001-05-24
  • 最后登录2002-06-27
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2311回复:3

VXD 与 APP 同步问题

楼主#
更多 发布于:2001-09-09 00:33
Anybody know the synchronization between VXD and App ?

Because when I try to make TDI monitor, I hook all TDI function to my func, and in my func, I use SHELL_PostMessage( ) to post message to my APP, but it is very strange that all the message Hook func send to APP are out of order, for example, I send "1", "2", "3" to APP, the APP display message by order "3", "2", "1".

Finally, I use share event between APP and VXD, after VXD use SHELL_postmesage( ), following a VWIN32_WaitSingleObject( ), and in APP, after receive a message from VXD, I use SetEvent( ) to notify VXD. But very puzzle thing is, when I use only one this instruction in only one VXD func, it works well, but if I use it in two VXD func or more, it always cause my test server ( a chat Server I made ) deadlock, but the chat client doesn't affected.

If anyboby can give an answer, I will very appreciate him.
I have stop there for more than four days. WU WU WU :(  :(
lrx666
驱动太牛
驱动太牛
  • 注册日期2001-08-17
  • 最后登录2010-10-25
  • 粉丝0
  • 关注0
  • 积分14分
  • 威望47点
  • 贡献值0点
  • 好评度4点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-11-29 15:41
问的太多了,自己先搜索吧
mxd
mxd
驱动牛犊
驱动牛犊
  • 注册日期2002-03-21
  • 最后登录2003-11-23
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-11-29 15:25
Anybody know the synchronization between VXD and App ?

Because when I try to make TDI monitor, I hook all TDI function to my func, and in my func, I use SHELL_PostMessage( ) to post message to my APP, but it is very strange that all the message Hook func send to APP are out of order, for example, I send \"1\", \"2\", \"3\" to APP, the APP display message by order \"3\", \"2\", \"1\".

Finally, I use share event between APP and VXD, after VXD use SHELL_postmesage( ), following a VWIN32_WaitSingleObject( ), and in APP, after receive a message from VXD, I use SetEvent( ) to notify VXD. But very puzzle thing is, when I use only one this instruction in only one VXD func, it works well, but if I use it in two VXD func or more, it always cause my test server ( a chat Server I made ) deadlock, but the chat client doesn\'t affected.

If anyboby can give an answer, I will very appreciate him.
I have stop there for more than four days. WU WU WU :(  :(


The hardware you are developing is a FIFO card? But it is not.
因为爱好而做,因为生活而工作。 互相帮助,共同发展
yebear
驱动牛犊
驱动牛犊
  • 注册日期2001-05-18
  • 最后登录2013-04-05
  • 粉丝0
  • 关注0
  • 积分9分
  • 威望51点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-11-29 15:16
maybe i can help you
游客

返回顶部