ChangeStartMode 用法
来源:互联网 发布:西门子200编程软件 编辑:程序博客网 时间:2024/05/23 12:29
The ChangeStartMode WMI class method modifies the start mode of a Win32_Service.
This topic uses Managed Object Format (MOF) syntax. For more information about using this method, see Calling a Method.
Syntax
uint32 ChangeStartMode(
[in] string StartMode
);
Parameters
- StartMode [in]
Start mode of the Windows base service.
Value Meaning - Boot
Device driver started by the operating system loader. This value is valid only for driver services.
- System
Device driver started by the operating system initialization process. This value is valid only for driver services.
- Automatic
Service to be started automatically by the Service Control Manager during system startup.(特别需要注意,在检索时间所检索到自启动服务的StartMode为Auto)
- Manual
Service to be started by the Service Control Manager when a process calls the StartService method.
- Disabled
Service that can no longer be started.
Return Value
Returns one of the values listed in the following table or any other value to indicate an error.
- 0
Success
- 1
Not Supported
- 2
Access Denied
- 3
Dependent Services Running
- 4
Invalid Service Control
- 5
Service Cannot Accept Control
- 6
Service Not Active
- 7
Service Request Timeout
- 8
Unknown Failure
- 9
Path Not Found
- 10
Service Already Running
- 11
Service Database Locked
- 12
Service Dependency Deleted
- 13
Service Dependency Failure
- 14
Service Disabled
- 15
Service Logon Failure
- 16
Service Marked For Deletion
- 17
Service No Thread
- 18
Status Circular Dependency
- 19
Status Duplicate Name
- 20
Status Invalid Name
- 21
Status Invalid Parameter
- 22
Status Invalid Service Account
- 23
Status Service Exists
- 24
Service Already Paused
- ChangeStartMode 用法
- 用法
- ,, 用法
- 用法
- 用法
- #用法
- ??用法
- !!用法
- CustDialog用法 SimpleAdapter 用法
- hibernate_Restrictions用法 hibernate_Restrictions用法
- extern用法+assert用法
- getParameterValues用法
- rpm用法
- Log4j用法
- NameSpace用法
- sp_executesql 用法
- ShellExecute用法
- getParameterValues用法
- VC多线程编程_综述
- ORACLE Sysdba权限认证管理
- 《C和指针学习笔记》之双链表操作
- SIP Using SDP with Offer/Answer Model
- Instructions for Sugar CRM
- ChangeStartMode 用法
- 比较好的英语学习网站
- CSS设计网页时的一些常用规范
- Geometric and Topological Data Structure Presentation in Open Cascade [1]
- wap1.2开发中用到的跳转页面
- 留住此刻你闪过的思绪
- netsh命令的详解
- css和javascript在IE和Firefox中二十三个不同点
- C++和C#编写调用COM组件