<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.win32-send-custom-control.php',
    1 => 'win32_send_custom_control',
    2 => 'Send a custom control to the service',
  ),
  'up' => 
  array (
    0 => 'ref.win32service.php',
    1 => 'win32service İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.win32-remove-service-env-var.php',
    1 => 'win32_remove_service_env_var',
  ),
  'next' => 
  array (
    0 => 'function.win32-set-service-exit-code.php',
    1 => 'win32_set_service_exit_code',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/win32service/functions/win32-send-custom-control.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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 &gt;=0.4.0)</p><p class="refpurpose"><span class="refname">win32_send_custom_control</span> &mdash; <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">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>win32_send_custom_control</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.integer.php" class="type int">int</a></span> <code class="parameter">$control</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">
   
   See <a href="https://docs.microsoft.com/en-us/windows/desktop/api/winsvc/nf-winsvc-controlservice" class="link external">&raquo;&nbsp;Microsoft ControlService function</a> for more details
  </p>
  
 </div>


 <div class="refsect1 parameters" id="refsect1-function.win32-send-custom-control-parameters">
  <h3 class="title">Bağımsız Değişkenler</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">Dönen Değerler</h3>
  <p class="para">
   Hiçbir değer dönmez.
  </p>
  <p class="para">
    Prior to version 1.0.0, Başarı durumunda <strong><code><a href="win32service.constants.php#constant.win32-no-error">WIN32_NO_ERROR</a></code></strong>, başarısızlık durumunda bağımsız değişkenlerle
ilgili bir sorun varsa veya bir <a href="win32service.constants.php#win32service.constants.errors" class="link">Win32 Hata Kodu</a> sözkonusuysa
<strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.win32-send-custom-control-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">
   Prior to version 1.0.0, if the control value is not between 128 and 255, this function emits an
   <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong> level error.
  </p>
  <p class="para">
    A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if the
    value of <code class="parameter">servicename</code> parameter is empty.
  </p>
  <p class="para">
    A <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> is thrown if the
    value of <code class="parameter">control</code> parameter is not between 128 and 255.
  </p>
   <p class="para">
    A <span class="classname"><a href="class.win32serviceexception.php" class="classname">Win32ServiceException</a></span> is thrown on error.
   </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.win32-send-custom-control-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>PECL win32service 1.0.0</td>
       <td>
        Throws a <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> on invalid data in parameters,
        previously <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> was returned.
       </td>
      </tr>

      <tr>
       <td>PECL win32service 1.0.0</td>
       <td>
        Throws a <span class="classname"><a href="class.win32serviceexception.php" class="classname">Win32ServiceException</a></span> on error,
        previously a 
        <a href="win32service.constants.php#win32service.constants.errors" class="link">Win32 Error Code</a>
        was returned.
       </td>
      </tr>

      <tr>
       <td>PECL win32service 1.0.0</td>
       <td>
        The return type is now <span class="type"><span class="type"><a href="language.types.void.php" class="type void">void</a></span></span>, previously it was <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.win32-send-custom-control-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
    <li><span class="function"><a href="function.win32-start-service.php" class="function" rel="rdfs-seeAlso">win32_start_service()</a> - Bir hizmeti başlatır</span></li>
    <li><span class="function"><a href="function.win32-stop-service.php" class="function" rel="rdfs-seeAlso">win32_stop_service()</a> - Bir hizmeti durdurur</span></li>
    <li><span class="function"><a href="function.win32-pause-service.php" class="function" rel="rdfs-seeAlso">win32_pause_service()</a> - Pauses a service</span></li>
    <li><span class="function"><a href="function.win32-continue-service.php" class="function" rel="rdfs-seeAlso">win32_continue_service()</a> - Resumes a paused service</span></li>
    <li><a href="win32service.constants.php#win32service.constants.errors" class="link">Win32 Error Codes</a></li>
  </ul>
 </div>


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