阅读:1602回复:3
如何让VXD与两个Win32进程通信?
问题是这样的,我在写一个VXD,将一个文件读重定位到网络上去,
我用的是DEVICEIOCONTROL从另外一个win32程序RECIEVE中取得数据。问题是:当接到一个READ请求后,用事件通知RECIEVE,然后 RECIEVE用DeviceIoControl通知Vxd数据已到,但此时我处于Read 请求的处理过程中,无法处理DeviceIoControl,系统就完了。 各位大侠help!!! |
|
沙发#
发布于: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. |
|
板凳#
发布于: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. |
|
地板#
发布于:2001-08-28 10:05
您的研究我非常感兴趣,认识一下好吗?
请打电话 010 66416821 - 23 或发邮件. sharonfu@dynalab.com.cn |
|
|