阅读:1438回复:7
安装出错,会的人来那分
我安装passthru.sys后用drivermontior查看调试信息,
open passthru.sys后 用start启动 出错 Monitor ERROR (1058): The driver is marked as disabled (Start=4) in its service database entry. 8.282 Default Passthru: PtUnload: entered 8.282 Default Passthru: PtUnloadProtocol: done! 8.282 Default Passthru: PtUnload: done! 这是怎么会事,如何打开service database entry |
|
沙发#
发布于:2003-02-12 15:40
我来灌灌水:
其实以前的帖子中有类似问题的回答. 结论是: driver monitor 不能用来用服务的方式动态加载WDM驱动,只能用来加载NT式的驱动. 要动态加载WDM可能需要DriverStudio/Tools/EzDrvInstaller |
|
板凳#
发布于:2003-02-15 14:07
用ezDrvInstaller 来安装是没错,但是 drivermoniter 可以显示 wdm输出的 信息。
但是你说的情况我觉得是在 inf 中 的 install.nt.service 中 start = 3 ,你现在是 = 4 ,相当于把驱动禁止了 |
|
|
地板#
发布于:2003-02-16 13:15
用ezDrvInstaller 来安装是没错,但是 drivermoniter 可以显示 wdm输出的 信息。 找本inf看看! |
|
|
地下室#
发布于:2003-02-16 17:12
同意
|
|
|
5楼#
发布于:2003-02-16 18:32
各位大哥,见笑了。我到底是怎么错了?
可否指点? 先谢过了 |
|
|
6楼#
发布于:2003-02-17 16:13
经查证 :
Start(3) 指出系统应动态装入这个驱动程序。(该值与CreateService中的SERVICE_DEMAND_START常量对应,用于内核模式驱动程序时它代表不必明确调用StartService函数或发出NET START命令来启动驱动程序) |
|
|
7楼#
发布于:2003-02-18 17:05
据ddk :
Drivers should follow these rules for specifying StartType: PnP driver A PnP driver should have a start type of SERVICE_DEMAND_START (0x3), specifying that the PnP Manager can load the driver whenever the PnP Manager finds a device that the driver services. Driver for a device required to boot the machine If a device is required to boot the machine, the drivers for the device should have a start type of SERVICE_BOOT_START (0x0). Non-boot driver that detects device(s) that are not PnP-enumerable For a device that is not PnP-enumerable, a driver reports the device to the PnP Manager by calling IoReportDetectedDevice. Such a driver should have the start type SERVICE_SYSTEM_START (0x01), so Setup will load the driver during system initialization. Only drivers that report nonPnP hardware should set this start type. If a driver services both PnP and nonPnP devices, the driver should set this start type. NonPnP driver that must be started by the Service Control Manager Such a driver should have the start type SERVICE_AUTO_START (0x02). PnP drivers must not set this start type. |
|
|