阅读:1394回复:5
用DriverWorks开发WDM驱动问题求教高手!
我需要在驱动中访问串行口,能否用windows的createfile函数以及OVERLAPPED结构等等?如果不能,我该怎样做才能读写串口?
|
|
沙发#
发布于:2002-04-19 12:21
必须用ZwCreateFile,详情请查看相关DDK文档。
|
|
|
板凳#
发布于:2002-04-19 13:41
谢谢,那么原先的SetCommState等串口函数还能用否?
|
|
地板#
发布于:2002-04-19 13:42
谢谢,请问API里的SetCommState等串口函数还能用否?
|
|
地下室#
发布于:2002-04-19 15:44
windows have a serial port driver already, I think you can open this driver in your driver and operate it, or try to get a devicepointor then build some kind of irp to read / write data on it,
just personal advice to you :P :P :P |
|
|
5楼#
发布于:2002-04-19 16:13
to wlrwx:
我知道windows有COM口的驱动,但是在我的WDM中好像不能使用CreateFile函数,不知SetCommState等串口函数能否使用。那我如何操作串口呢? |
|