uTools-Manuals/docs/php/win32_stop_service.html
2019-04-08 23:22:26 +08:00

116 lines
3.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Stops a service</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.win32-stop-service" class="refentry">
<div class="refnamediv">
<h1 class="refname">win32_stop_service</h1>
<p class="verinfo">(PECL win32service &gt;=0.1.0)</p><p class="refpurpose"><span class="refname">win32_stop_service</span> &mdash; <span class="dc-title">Stops a service</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.win32-stop-service-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>win32_stop_service</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$servicename</code></span>
[, <span class="methodparam"><span class="type">string</span> <code class="parameter">$machine</code></span>
] ) : <span class="type">int</span></div>
<p class="para rdfs-comment">
Stops a named service. Requires administrative privileges or
an account with appropriate rights set in the service&#039;s ACL.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.win32-stop-service-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">servicename</code></dt>
<dd>
<p class="para">
The short name of the service.
</p>
</dd>
<dt>
<code class="parameter">machine</code></dt>
<dd>
<p class="para">
Optional machine name. If omitted, the local machine is used.
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.win32-stop-service-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
成功时返回 <strong><code>WIN32_NO_ERROR</code></strong>,参数错误时返回 <strong><code>FALSE</code></strong>,或失败时返回一个 <a href="win32service.constants.errors.html" class="link">Win32 错误码</a>
</p>
</div>
<div class="refsect1 changelog" id="refsect1-function.win32-stop-service-changelog">
<h3 class="title">更新日志</h3>
<p class="para">
<table class="doctable informaltable">
<thead>
<tr>
<th>版本</th>
<th>说明</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td>0.3.0</td>
<td>
This function does not longer require an administrator account if ACL is set for another account.
</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.win32-stop-service-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="win32_start_service.html" class="function" rel="rdfs-seeAlso">win32_start_service()</a> - Starts a service</span></li>
<li class="member"><span class="function"><a href="win32_pause_service.html" class="function" rel="rdfs-seeAlso">win32_pause_service()</a> - Pauses a service</span></li>
<li class="member"><span class="function"><a href="win32_continue_service.html" class="function" rel="rdfs-seeAlso">win32_continue_service()</a> - Resumes a paused service</span></li>
<li class="member"><span class="function"><a href="win32_send_custom_control.html" class="function" rel="rdfs-seeAlso">win32_send_custom_control()</a> - Send a custom control to the service</span></li>
<li class="member"><a href="win32service.constants.errors.html" class="link">Win32 Error Codes</a></li>
</ul>
</p>
</div>
</div></div></div></body></html>