zoukankan      html  css  js  c++  java
  • ChangeStartMode 用法

    ChangeStartMode Method of the Win32_Service Class


    The ChangeStartModeWMI 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

    MOF
    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.

    Return code Description
    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

  • 相关阅读:
    前端优化方法(全)
    前端工程化
    HTTP状态码
    TCP三次握手和四次挥手
    在浏览器输入url后并回车发生了哪些过程
    javascript异步编程
    为什么浏览器采用多进程模型
    LeetCode——最长回文子串?
    LeetCode——字符串的排列/找到字符串中所有字母异位词
    LeetCode——24 点游戏
  • 原文地址:https://www.cnblogs.com/dongzhiquan/p/1994940.html
Copyright © 2011-2022 走看看