📄 function.win32-set-service-status.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Update the service status</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.win32-query-service-status.html">win32_query_service_status</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.win32-start-service-ctrl-dispatcher.html">win32_start_service_ctrl_dispatcher</a></div> <div class="up"><a href="ref.win32service.html">win32service Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.win32-set-service-status" class="refentry"> <div class="refnamediv"> <h1 class="refname">win32_set_service_status</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">win32_set_service_status</span> — <span class="dc-title">Update the service status</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><b><b>win32_set_service_status</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$status</tt></span> )</div> <p class="para rdfs-comment"> Informs the SCM of the current status of a running service. This call is only valid for a running service process. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">status</tt></i></span> <dd> <p class="para"> The service status code, one of <b><tt>WIN32_SERVICE_RUNNING</tt></b>, <b><tt>WIN32_SERVICE_STOPPED</tt></b>, <b><tt>WIN32_SERVICE_STOP_PENDING</tt></b>, <b><tt>WIN32_SERVICE_START_PENDING</tt></b>, <b><tt>WIN32_SERVICE_CONTINUE_PENDING</tt></b>, <b><tt>WIN32_SERVICE_PAUSE_PENDING</tt></b>, <b><tt>WIN32_SERVICE_PAUSED</tt></b>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.win32-start-service-ctrl-dispatcher.html" class="function" rel="rdfs-seeAlso">win32_start_service_ctrl_dispatcher()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.win32-query-service-status.html">win32_query_service_status</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.win32-start-service-ctrl-dispatcher.html">win32_start_service_ctrl_dispatcher</a></div> <div class="up"><a href="ref.win32service.html">win32service Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -