txftxf
驱动牛犊
驱动牛犊
  • 注册日期2001-07-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1600回复:3

如何让VXD与两个Win32进程通信?

楼主#
更多 发布于:2001-08-27 21:51
问题是这样的,我在写一个VXD,将一个文件读重定位到网络上去,
我用的是DEVICEIOCONTROL从另外一个win32程序RECIEVE中取得数据。问题是:当接到一个READ请求后,用事件通知RECIEVE,然后
RECIEVE用DeviceIoControl通知Vxd数据已到,但此时我处于Read
请求的处理过程中,无法处理DeviceIoControl,系统就完了。
各位大侠help!!!
sharon
驱动牛犊
驱动牛犊
  • 注册日期2001-06-06
  • 最后登录2001-12-26
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2001-08-28 10:05
您的研究我非常感兴趣,认识一下好吗?
请打电话 010 66416821 - 23  或发邮件.
sharonfu@dynalab.com.cn
一学就会
ymq
ymq
驱动牛犊
驱动牛犊
  • 注册日期2001-05-24
  • 最后登录2002-06-27
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2001-09-09 00:17
do you open your VXD device with flag FILE_FLAG_OVERLAPPED ?  because according to the explaination of VToolsD to DeviceIoControl(...), if you don't use this Flag, the DeviceIOcontrol will run to the VXD's function OnWin32IOControl directly, but at the same time, your VXD are waiting for your reply from APP, so that, it cause you reenter VXD, your VXD will deadlock.

I found this thing in my TDI monitor, before I know that, my VXD always deadlock.

Good luck.
txftxf
驱动牛犊
驱动牛犊
  • 注册日期2001-07-11
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2001-09-10 08:25
Yes,I had found the problem too.then i used the W32Event mechanism to information the w32app and DeviceIoControl
to send data to the Vxd.So , all is right .thank you too.
游客

返回顶部