[英]Starting created service using sc.exe throws error: “[SC] StartService FAILED with error 129.”
I create the service using following commands: sc create MyService binpath= "C:\\Path\\MyDriver.sys"
and the returned message is: [SC] CreateService SUCCESS
, but once I want to start this service using: sc start MyService
I get the error: [SC] StartService FAILED with error 129.
. 我使用以下命令创建服务: sc create MyService binpath= "C:\\Path\\MyDriver.sys"
,返回的消息是: [SC] CreateService SUCCESS
,但是一旦我想使用以下命令启动此服务: sc start MyService
我得到错误: [SC] StartService FAILED with error 129.
。 Have you any idea how to fix this error and start service properly? 您是否知道如何解决此错误并正确启动服务? I've seen this , but there's no proper answer. 我已经看到了 ,但是没有适当的答案。 Thanks in advance. 提前致谢。
Error code 129 is ERROR_CHILD_NOT_COMPLETE
(ie the application cannot be run in Win32 mode). 错误代码129为ERROR_CHILD_NOT_COMPLETE
(即,应用程序无法在Win32模式下运行)。 You created a user-mode service since the default is type= own
(ie SERVICE_WIN32_OWN_PROCESS
when calling WinAPI CreateService
). 您创建了用户模式服务,因为默认值为type= own
(即,调用WinAPI CreateService
时,即SERVICE_WIN32_OWN_PROCESS
)。 However, you're trying to run a kernel-mode driver, which should be type= kernel
(ie SERVICE_KERNEL_DRIVER
). 但是,您正在尝试运行内核模式驱动程序,该驱动程序应为type= kernel
(即SERVICE_KERNEL_DRIVER
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.