阅读:1137回复:4
驱动程序通知应用程序一个事件发生了用什么方法好?
驱动程序通知应用程序一个事件发生,看书上三种方法,每种方法都这么复杂,大侠指点一下,用那种方法比较简单?谢谢,
|
|
沙发#
发布于:2004-05-25 10:18
KEvent
|
|
|
板凳#
发布于:2004-05-26 08:35
主要都是通过Win32事件,
请问那两种方法是什么 |
|
|
地板#
发布于:2004-05-26 08:44
DeviceIoControl和ReadFile、WriteFile
|
|
|
地下室#
发布于:2004-05-27 21:25
they all use the same method: EVENT.
1. create an EVENT in your user mode application; 2. pass it down to driver; 3. driver convert and keep the EVENT handle; 4. application wait for the EVENT; 5. driver trigger the EVENT when something happens. the other way can use shared memory between driver and application. both driver and application can R/W to a certain address with certain flags. |
|