service.html

来自「perl教程」· HTML 代码 · 共 103 行

HTML
103
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>Win32::Service - manage system services in perl</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',2);</script>
<h1><a>Win32::Service - manage system services in perl</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#functions">FUNCTIONS</a></li>
	<ul>

		<li><a href="#note_">NOTE:</a></li>
	</ul>

</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Win32::Service - manage system services in perl</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
        <span class="keyword">use</span> <span class="variable">Win32::Service</span><span class="operator">;</span>
</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This module offers control over the administration of system services.</p>
<p>
</p>
<hr />
<h1><a name="functions">FUNCTIONS</a></h1>
<p>
</p>
<h2><a name="note_">NOTE:</a></h2>
<p>All of the functions return false if they fail, unless otherwise noted.
If hostName is an empty string, the local machine is assumed.</p>
<dl>
<dt><strong><a name="item_startservice">StartService(hostName, serviceName)</a></strong>

<dd>
<p>Start the service serviceName on machine hostName.</p>
</dd>
</li>
<dt><strong><a name="item_stopservice">StopService(hostName, serviceName)</a></strong>

<dd>
<p>Stop the service serviceName on the machine hostName.</p>
</dd>
</li>
<dt><strong><a name="item_getstatus">GetStatus(hostName, serviceName, status)</a></strong>

<dd>
<p>Get the status of a service.  The third argument must be a hash
reference that will be populated with entries corresponding
to the SERVICE_STATUS structure of the Win32 API.  See the
Win32 Platform SDK documentation for details of this structure.</p>
</dd>
</li>
<dt><strong><a name="item_pauseservice">PauseService(hostName, serviceName)</a></strong>

<dt><strong><a name="item_resumeservice">ResumeService(hostName, serviceName)</a></strong>

<dt><strong><a name="item_getservices">GetServices(hostName, hashref)</a></strong>

<dd>
<p>Enumerates both active and inactive Win32 services at the specified host.
The hashref is populated with the descriptive service names as keys
and the short names as the values.</p>
</dd>
</li>
</dl>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?