SC 启动服务失败 1058
SC StartService FAILED 1058
我正在尝试将驱动程序安装为驱动程序服务(即,使用 sc create
或等效项),但是当我尝试启动它时(使用 sc startservice
),我总是收到错误 1058:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
现在真的很烦,不知道怎么办。
我也尝试按照教程进行操作 Write a universal Hello World driver (KMDF) 但是在构建时我得到了
1 error : No such host is known
当我像教程中那样选中属性-> 驱动程序安装下的 "Enable Deployment" 复选框时。
(没有这个复选框它构建成功,但我又得到错误 1058。)
我想将其安装为驱动程序服务,而不是教程中的安装方式。我该怎么做?
我认为问题在于驱动程序的手动启动方式不对,也就是说,由于它的设计方式 and/or 配置,它必须由即插即用系统启动响应匹配硬件设备的存在。
OP 报告将驱动程序类型从 KMDF 更改为 WDM 解决了问题。
我正在尝试将驱动程序安装为驱动程序服务(即,使用 sc create
或等效项),但是当我尝试启动它时(使用 sc startservice
),我总是收到错误 1058:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
现在真的很烦,不知道怎么办。
我也尝试按照教程进行操作 Write a universal Hello World driver (KMDF) 但是在构建时我得到了
1 error : No such host is known
当我像教程中那样选中属性-> 驱动程序安装下的 "Enable Deployment" 复选框时。
(没有这个复选框它构建成功,但我又得到错误 1058。)
我想将其安装为驱动程序服务,而不是教程中的安装方式。我该怎么做?
我认为问题在于驱动程序的手动启动方式不对,也就是说,由于它的设计方式 and/or 配置,它必须由即插即用系统启动响应匹配硬件设备的存在。
OP 报告将驱动程序类型从 KMDF 更改为 WDM 解决了问题。