阅读:3329回复:17
Win9x加载wdm驱动程序
Win9x下如何加载wdm驱动程序
《Windows WDM 设备驱动程序开发指南》在NT&Win2k下提供了servicer程序,可以lookup、start、stop wdm驱动程序,请问有谁知道Win9x下有无类似的工具(有源代码)? 如果没有的话,应该怎么实现上述功能? |
|
沙发#
发布于:2002-03-14 11:10
上面的问题换个提法:
Win9x怎么动态加载WDM驱动程序? 请高手指教 |
|
板凳#
发布于:2002-03-15 13:01
你知道inf文件吗?
做一个安装文件*.inf,再在“控制面版”的“添加新硬件”中进行安装就可以了。 |
|
地板#
发布于:2002-03-15 14:25
我的驱动程序需要在win98下 动态加载
我使用的是虚拟设备驱动程序 有人使用过Windows WDM 设备驱动程序开发指南》在NT&Win2k下提供了servicer.exe吗? |
|
地下室#
发布于:2002-03-15 16:09
安装驱动程序关键在于拷内驱动程序可执行文件到系统目录,启动驱程序则涉及到一系的API调用,你可以在MSDN中查以下的API,你可以获得更多的帮助信息
StartService,StopSerivce,CreateService Best regards |
|
|
5楼#
发布于:2002-03-15 19:24
我在win2000DDK中见过一些例子,是SetupDi....的调用,你可以看看,也许有帮助。
|
|
6楼#
发布于:2002-03-16 11:34
win98可以用吗?
|
|
7楼#
发布于:2002-03-16 11:44
我的驱动程序需要在win98下 动态加载 好像Service API只能在2000用吧,98下行吗? |
|
|
8楼#
发布于:2002-03-17 22:31
filemon的例子倒是做到了动态加载,可以参考一下
|
|
9楼#
发布于:2002-03-18 09:21
filemon的例子倒是做到了动态加载,可以参考一下 好像FileMon是在2000下动态加载的NT Driver,原理和WDM一样,但98下则是VxD了。 在98下怎么动态加载WDM? |
|
|
10楼#
发布于:2002-03-18 11:17
Lov1999 ,你说的没错.
FileMon 是在 nt 下动态加载 sys 结尾的文件. 9x 下动态加载 vxd 结尾的文件。 不只是它. 你看无论是杀毒软件, 还是网络嗅探程序, 只要涉及底层操作, 都是提供两个驱动文件. 好象成为了一种标准. 大家看看刘涛涛大侠的调试器 trw2000 , 研究一下里边的 trw2000.sys 文件, 看是不是符合上述条件. 有什么问题, 去问刘涛涛. 刘涛涛的网站地址: http://www.knlsoft.com |
|
11楼#
发布于:2002-03-18 12:23
我想起来了,好像TRW确实是在98下动态装入一个.sys的,应该是个WDM驱动。谁和他熟?去问问他
|
|
|
12楼#
发布于:2002-03-18 22:23
you can do this by
1.prepare a correct inf file and copy it to correct directory. 2.add registry yourself. 3.copy your sys or mpd(which is PE format). 4.force system device scan then. 1. system scan will find the registry you registed. 2. it will find inf which is the pair of registry you prapared. 3. it will start your device. when you unload your device/driver 1.delete related registry key 2. force system device scan it will work. all this has been verified in 9x( for mpd). for sys file, it should be same. if you use safe remove device in Me, you will find that it should work in same way. (enable/disable device in device manager also should work this way). |
|
13楼#
发布于:2002-03-18 22:41
win98第一版支持WDM吗
|
|
14楼#
发布于:2003-06-18 15:26
how to force system device scan
by programming thanks which function do i call |
|
15楼#
发布于:2003-06-18 15:41
用Walter Oney的FastInst.exe安装INF文件来安装SYS
|
|
16楼#
发布于:2003-06-20 21:09
98不支持kmd,所以不能动态加载把
|
|
|
17楼#
发布于:2003-07-02 18:58
也不知听谁说的,不要inf也可以,但不知道如何实现 :(
|
|
|