mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-27 02:28:31 +02:00
133 lines
3.9 KiB
XML
133 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 05568582247276cc2ee7b2b87f7df7d602e566c0 Maintainer: jbnahan Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="function.win32-set-service-exit-code" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>win32_set_service_exit_code</refname>
|
|
<refpurpose>Définir ou renvoyer le code de sortie pour le service en cours d'exécution</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description"><!-- {{{ -->
|
|
&reftitle.description;
|
|
<methodsynopsis role="procedural">
|
|
<type>int</type><methodname>win32_set_service_exit_code</methodname>
|
|
<methodparam choice="opt"><type>int</type><parameter>exitCode</parameter><initializer>1</initializer></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Change ou retourne le code de sortie. Le code de sortie est utilisé uniquement
|
|
si le mode de sortie n'est pas gracieux.
|
|
Si la valeur n'est pas zéro, la configuration de récupération peut être utilisée
|
|
après l'échec du service. Voir <link xlink:href="&url.microsoft.return.code;">les
|
|
codes d'erreur système Microsoft</link> pour plus de détails
|
|
</para>
|
|
|
|
<caution>
|
|
<para>
|
|
Cette fonction fonctionne uniquement dans SAPI "cli". Sur d'autres SAPI, cette
|
|
fonction est désactivée.
|
|
</para>
|
|
</caution>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="parameters"><!-- {{{ -->
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>exitCode</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Le code de retour utilisé à la sortie.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="returnvalues"><!-- {{{ -->
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne le code de sortie actuel ou l'ancien.
|
|
</para>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="errors"><!-- {{{ -->
|
|
&reftitle.errors;
|
|
<para>
|
|
Avant la version 1.0.0, si cette fonction est utilisé en dehors du SAPI <literal>"cli"</literal>, une
|
|
erreur <constant>E_ERROR</constant> sera émise.
|
|
</para>
|
|
<para>
|
|
À partir de la version 1.0.0, lancera une
|
|
<classname>Win32ServiceException</classname> si le SAPI n'est pas
|
|
<literal>"cli"</literal>
|
|
</para>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="changelog"><!-- {{{ -->
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>PECL win32service 1.0.0</entry>
|
|
<entry>
|
|
Lance une <classname>ValueError</classname> si un paramètre est invalide,
|
|
avant &false; était retourné.
|
|
</entry>
|
|
</row>
|
|
<row>
|
|
<entry>PECL win32service 1.0.0</entry>
|
|
<entry>
|
|
Lance une <classname>Win32ServiceException</classname> en cas d'erreur,
|
|
avant un
|
|
<link xmlns="http://docbook.org/ns/docbook" linkend="win32service.constants.errors">Code d'erreur Win32</link>
|
|
était retourné.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="seealso"><!-- {{{ -->
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><function>win32_start_service_ctrl_dispatcher</function></member>
|
|
<member><function>win32_set_service_status</function></member>
|
|
<member><function>win32_set_service_exit_mode</function></member>
|
|
</simplelist>
|
|
</refsect1><!-- }}} -->
|
|
|
|
</refentry>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|