mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-19 06:16:58 +08:00
106 lines
4.0 KiB
HTML
106 lines
4.0 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>Send a custom control to the service</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.win32-send-custom-control" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">win32_send_custom_control</h1>
|
|
<p class="verinfo">(PECL win32service >=0.4.0)</p><p class="refpurpose"><span class="refname">win32_send_custom_control</span> — <span class="dc-title">Send a custom control to the service</span></p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.win32-send-custom-control-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>win32_send_custom_control</strong></span>
|
|
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$servicename</code></span>
|
|
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$control</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">
|
|
|
|
See <a href="https://docs.microsoft.com/en-us/windows/desktop/api/winsvc/nf-winsvc-controlservice" class="link external">» Microsoft ControlService function</a> for more details
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.win32-send-custom-control-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">servicename</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The short name of the service.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">control</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The custom contole value between 128 and 255.
|
|
</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>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.win32-send-custom-control-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 errors" id="refsect1-function.win32-send-custom-control-errors">
|
|
<h3 class="title">错误/异常</h3>
|
|
<p class="para">
|
|
If the control value is not between 128 and 255, this function emits an
|
|
<strong><code>E_ERROR</code></strong> level error.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.win32-send-custom-control-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<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_stop_service.html" class="function" rel="rdfs-seeAlso">win32_stop_service()</a> - Stops 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"><a href="win32service.constants.errors.html" class="link">Win32 Error Codes</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |