Source of: /manual/en/function.win32-get-last-control-message.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.win32service.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.win32-get-last-control-message.php',
1 => 'win32_get_last_control_message',
),
'up' =>
array (
0 => 'ref.win32service.php',
1 => 'win32service Functions',
),
'prev' =>
array (
0 => 'function.win32-delete-service.php',
1 => 'win32_delete_service',
),
'next' =>
array (
0 => 'function.win32-query-service-status.php',
1 => 'win32_query_service_status',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.win32-get-last-control-message" class="refentry">
<div class="refnamediv">
<h1 class="refname">win32_get_last_control_message</h1>
<p class="verinfo">(PECL win32service SVN)</p><p class="refpurpose"><span class="refname">win32_get_last_control_message</span> — <span class="dc-title">Returns the last control message that was sent to this service</span></p>
</div>
<a name="function.win32-get-last-control-message.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">int</span> <span class="methodname"><b>win32_get_last_control_message</b></span>
( <span class="methodparam">void</span>
)</div>
<p class="para rdfs-comment">
Returns the control code that was last sent to this service process.
When running as a service you should periodically check this to determine if
your service needs to stop running.
</p>
</div>
<a name="function.win32-get-last-control-message.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns a control constant; one of <b><tt class="constant">WIN32_SERVICE_CONTROL_CONTINUE</tt></b>,
<b><tt class="constant">WIN32_SERVICE_CONTROL_INTERROGATE</tt></b>,
<b><tt class="constant">WIN32_SERVICE_CONTROL_PAUSE</tt></b>,
<b><tt class="constant">WIN32_SERVICE_CONTROL_STOP</tt></b>,
<b><tt class="constant">WIN32_SERVICE_CONTROL_HARDWAREPROFILECHANGE</tt></b>,
<b><tt class="constant">WIN32_SERVICE_CONTROL_POWEREVENT</tt></b>,
<b><tt class="constant">WIN32_SERVICE_CONTROL_SESSIONCHANGE</tt></b>.
</p>
</div>
<a name="function.win32-get-last-control-message.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.win32-start-service-ctrl-dispatcher.php" class="function" rel="rdfs-seeAlso">win32_start_service_ctrl_dispatcher()</a> - Registers the script with the SCM, so that it can act as the service with the given name</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>