<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = 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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.win32-pause-service.php',
    1 => 'win32_pause_service',
    2 => 'Met en pause un service',
  ),
  'up' => 
  array (
    0 => 'ref.win32service.php',
    1 => 'Fonctions win32service',
  ),
  'prev' => 
  array (
    0 => 'function.win32-get-service-env-vars.php',
    1 => 'win32_get_service_env_vars',
  ),
  'next' => 
  array (
    0 => 'function.win32-query-service-status.php',
    1 => 'win32_query_service_status',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/win32service/functions/win32-pause-service.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.win32-pause-service" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">win32_pause_service</h1>
  <p class="verinfo">(PECL win32service &gt;=0.1.0)</p><p class="refpurpose"><span class="refname">win32_pause_service</span> &mdash; <span class="dc-title">Met en pause un service</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.win32-pause-service-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>win32_pause_service</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$servicename</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$machine</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Met en pause un service. Requiert des privilèges d&#039;administrateur ou 
   un compte avec les droits appropriés définis dans l&#039;ACL du service.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.win32-pause-service-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">servicename</code></dt>
     <dd>
      <p class="para">
       Le nom court du service.
      </p>
     </dd>
    
    
     <dt><code class="parameter">machine</code></dt>
     <dd>
      <p class="para">
       Nom de la machine (optionnel). Si omis, la machine locale
       sera utilisée.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.win32-pause-service-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="para">
   Aucune valeur n&#039;est retournée.
  </p>
  <p class="para">
    Avant la version 1.0.0, retournait <strong><code><a href="win32service.constants.php#constant.win32-no-error">WIN32_NO_ERROR</a></code></strong> on success, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if there is a problem with the parameters or a <a href="win32service.constants.php#win32service.constants.errors" class="link">Win32 Error Code</a> on failure.
  </p>
 </div>

 
 <div class="refsect1 errors" id="refsect1-function.win32-pause-service-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  <p class="para">
    Une <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> est levée si la valeur du paramètre 
    <code class="parameter">servicename</code> est vide.
  </p>

   <p class="para">
    Une <span class="classname"><a href="class.win32serviceexception.php" class="classname">Win32ServiceException</a></span> est levée en cas d&#039;erreur.
   </p>
 </div>

 
 <div class="refsect1 changelog" id="refsect1-function.win32-pause-service-changelog">
  <h3 class="title">Historique</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">      <tr>
       <td>PECL win32service 1.0.0</td>
       <td>
        Lance une <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> si un paramètre est invalide,
        avant <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> était retourné.
       </td>
      </tr>

      <tr>
       <td>PECL win32service 1.0.0</td>
       <td>
        Lance une <span class="classname"><a href="class.win32serviceexception.php" class="classname">Win32ServiceException</a></span> en cas d&#039;erreur,
        avant un  
        <a href="win32service.constants.php#win32service.constants.errors" class="link">Code d&#039;erreur Win32</a>
        était retourné.
       </td>
      </tr>

      <tr>
       <td>PECL win32service 1.0.0</td>
       <td>
        Le type de retour est maintenant <span class="type"><span class="type"><a href="language.types.void.php" class="type void">void</a></span></span>, avant il était <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span>.
       </td>
      </tr>

      <tr>
       <td>PECL win32service 0.3.0</td>
       <td>
        Cette fonction ne requiert plus de compte d&#039;administrateur si l&#039;ACL 
        est défini pour un autre compte.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.win32-pause-service-seealso">
  <h3 class="title">Voir aussi</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.win32-start-service.php" class="function" rel="rdfs-seeAlso">win32_start_service()</a> - D&eacute;marre un service</span></li>
    <li><span class="function"><a href="function.win32-stop-service.php" class="function" rel="rdfs-seeAlso">win32_stop_service()</a> - Arr&ecirc;te un service</span></li>
    <li><span class="function"><a href="function.win32-continue-service.php" class="function" rel="rdfs-seeAlso">win32_continue_service()</a> - Reprise d'un service en pause</span></li>
    <li><span class="function"><a href="function.win32-send-custom-control.php" class="function" rel="rdfs-seeAlso">win32_send_custom_control()</a> - Envoyer un contr&ocirc;le personnalis&eacute; au service</span></li>
    <li>Les <a href="win32service.constants.php#win32service.constants.errors" class="link">codes erreur Win32</a></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>