-
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 also can detect a legacy device should specify this value in its INF so that its DriverEntry routine will be 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, but a device/driver cannot be installed if this value is specified in the service-install section of its INF file.
For additional information about StartType, see Specifying Driver Load Order.
本文详细解释了驱动程序的不同启动类型及其应用场景。包括由操作系统加载器启动的服务(SERVICE_BOOT_START)、初始化期间启动的服务(SERVICE_SYSTEM_START)、系统启动时由服务控制管理器启动的服务(SERVICE_AUTO_START)、按需启动的服务(SERVICE_DEMAND_START)以及无法启动的服务(SERVICE_DISABLED)。这些启动类型对于设备驱动程序的正确安装和操作至关重要。
937

被折叠的 条评论
为什么被折叠?



