|
[bcm5709c_x86ws3.services]
addservice = b06bdrv, 0x00000002, x86_add_service, x86_eventlog
[bcm5709c_x86ws3.Wdf]
KmdfService = b06bdrv, bxvbdx_wdfsect
[x86_add_service]
displayname = %vbd_srv_desc%
servicetype = 1 ; SERVICE_KERNEL_DRIVER
starttype = 0 ; SERVICE_BOOT_START
errorcontrol = 1 ; SERVICE_ERROR_NORMAL
servicebinary = %12%\bxvbdx.sys
loadordergroup = base
addreg = product_version
-------------------------
SERVICE_BOOT_START 这里 starttype = 0 有关系吗?这个表示系统启动时加载它?
现在的主要问题,还在于class=system的驱动服务没有起来(没有激活)。
StartType=start-codeSpecifies when to start the driver as one of the following numeric values, expressed either in decimal or, as shown in the following list, in hexadecimal notation.
0x0 (SERVICE_BOOT_START)Indicates a driver started by the operating system loader.
This value must be used for drivers of devices required for loading the operating system.
0x1 (SERVICE_SYSTEM_START)Indicates a driver started during operating system initialization.
This value should be used by PnP drivers that do device detection during initialization but are not required to load the system.
For example, a PnP driver that can also detect a legacy device should specify this value in its INF so that its DriverEntry routine is called to find the legacy device, even if that device cannot be enumerated by the PnP manager.
0x2 (SERVICE_AUTO_START)Indicates a driver started by the service control manager during system startup.
This value should never be used in the INF files for WDM or PnP device drivers.
0x3 (SERVICE_DEMAND_START)Indicates a driver started on demand, either by the PnP manager when the corresponding device is enumerated or possibly by the service control manager in response to an explicit user demand for a non-PnP device.
This value should be used in the INF files for all WDM drivers of devices that are not required to load the system and for all PnP device drivers that are neither required to load the system nor engaged in device detection.
0x4 (SERVICE_DISABLED)Indicates a driver that cannot be started.
This value can be used to temporarily disable the driver services for a device. However, a device/driver cannot be installed if this value is specified in the service-install section of its INF file.
[ 本帖最后由 zhaohj 于 2012-6-7 15:50 编辑 ] |
|