[Ser_Inst.Services]
AddService = sermouse, 0x00000002, sermouse_Service_Inst, sermouse_EventLog_Inst ; Port Driver
AddService = mouclass,, mouclass_Service_Inst, mouclass_EventLog_Inst
; Class Driver
[Service Install] 此节列出将要安装的每一个服务信息
[install-section-name_ServiceInstallSection]
DisplayName=[name]
ServiceType=type-code
StartType=start-code
ErrorControl=error-control-level
ServiceBinary=path-to-service
LoadOrderGroup=[load-order-group-name]
Dependencies=+depend-on-group-name[[,depend-on-service-name]...]
StartName=[driver-object-name]
name
可选,友好的服务名称
type-code
驱动类型。为任何被 theCreateService 函数认可的参数。
start-code
何时启动驱动程序。可为:
SERVICE_BOOT_START (0x0)
由操作系统 loader 启动。使用此值仅用于操作系统基本服务。
SERVICE_SYSTEM_START (0x1)
操作系统初始化式启动。
SERVICE_AUTO_START (0x2)
SCM 在系统启动期间启动
SERVICE_DEMAND_START (0x3)
SCM 根据需要启动
SERVICE_DISABLED (0x4)
此服务不可被启动
error-control-level
指定错误控制级别。
CRITICAL (0x3)
如果驱动装载失败,启动失败。如果启动不是在 “最后一次正确( LastKnownGood. )”控制集,切换到 LastKnownGood 。如果启动试图用于 LastKnownGood, 运行故障检查例程
SEVERE (0x2)
|