<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Win32 Error Codes</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="win32service.constants.serviceflag.html">Win32Service Service Flag Constants</a></div> <div class="next" style="text-align: right; float: right;"><a href="win32service.constants.basepriorities.html">Win32 Base Priority Classes</a></div> <div class="up"><a href="win32service.constants.html">Predefined Constants</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="win32service.constants.errors" class="section"> <table class="doctable table"> <caption><strong>Win32 Error Codes</strong></caption> <thead> <tr> <th>Constant</th> <th>Value</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr id="constant.win32-error-access-denied"> <td><strong><code>WIN32_ERROR_ACCESS_DENIED</code></strong></td> <td>0x00000005</td> <td> The handle to the SCM database does not have the appropriate access rights. </td> </tr> <tr id="constant.win32-error-circular-dependency"> <td><strong><code>WIN32_ERROR_CIRCULAR_DEPENDENCY</code></strong></td> <td>0x00000423</td> <td> A circular service dependency was specified. </td> </tr> <tr id="constant.win32-error-database-does-not-exist"> <td><strong><code>WIN32_ERROR_DATABASE_DOES_NOT_EXIST</code></strong></td> <td>0x00000429</td> <td> The specified database does not exist. </td> </tr> <tr id="constant.win32-error-dependent-services-running"> <td><strong><code>WIN32_ERROR_DEPENDENT_SERVICES_RUNNING</code></strong></td> <td>0x0000041B</td> <td> The service cannot be stopped because other running services are dependent on it. </td> </tr> <tr id="constant.win32-error-duplicate-service-name"> <td><strong><code>WIN32_ERROR_DUPLICATE_SERVICE_NAME</code></strong></td> <td>0x00000436</td> <td> The display name already exists in the service control manager database either as a service name or as another display name. </td> </tr> <tr id="constant.win32-error-failed-service-controller-connect"> <td><strong><code>WIN32_ERROR_FAILED_SERVICE_CONTROLLER_CONNECT</code></strong></td> <td>0x00000427</td> <td> This error is returned if the program is being run as a console application rather than as a service. If the program will be run as a console application for debugging purposes, structure it such that service-specific code is not called. </td> </tr> <tr id="constant.win32-error-insufficient-buffer"> <td><strong><code>WIN32_ERROR_INSUFFICIENT_BUFFER</code></strong></td> <td>0x0000007A</td> <td> The buffer is too small for the service status structure. Nothing was written to the structure. </td> </tr> <tr id="constant.win32-error-invalid-data"> <td><strong><code>WIN32_ERROR_INVALID_DATA</code></strong></td> <td>0x0000000D</td> <td> The specified service status structure is invalid. </td> </tr> <tr id="constant.win32-error-invalid-handle"> <td><strong><code>WIN32_ERROR_INVALID_HANDLE</code></strong></td> <td>0x00000006</td> <td> The handle to the specified service control manager database is invalid. </td> </tr> <tr id="constant.win32-error-invalid-level"> <td><strong><code>WIN32_ERROR_INVALID_LEVEL</code></strong></td> <td>0x0000007C</td> <td> The InfoLevel parameter contains an unsupported value. </td> </tr> <tr id="constant.win32-error-invalid-name"> <td><strong><code>WIN32_ERROR_INVALID_NAME</code></strong></td> <td>0x0000007B</td> <td> The specified service name is invalid. </td> </tr> <tr id="constant.win32-error-invalid-parameter"> <td><strong><code>WIN32_ERROR_INVALID_PARAMETER</code></strong></td> <td>0x00000057</td> <td> A parameter that was specified is invalid. </td> </tr> <tr id="constant.win32-error-invalid-service-account"> <td><strong><code>WIN32_ERROR_INVALID_SERVICE_ACCOUNT</code></strong></td> <td>0x00000421</td> <td> The user account name specified in the <em><code class="parameter">user</code></em> parameter does not exist. See <span class="function"><a href="function.win32-create-service.html" class="function">win32_create_service()</a></span>. </td> </tr> <tr id="constant.win32-error-invalid-service-control"> <td><strong><code>WIN32_ERROR_INVALID_SERVICE_CONTROL</code></strong></td> <td>0x0000041C</td> <td> The requested control code is not valid, or it is unacceptable to the service. </td> </tr> <tr id="constant.win32-error-path-not-found"> <td><strong><code>WIN32_ERROR_PATH_NOT_FOUND</code></strong></td> <td>0x00000003</td> <td> The service binary file could not be found. </td> </tr> <tr id="constant.win32-error-service-already-running"> <td><strong><code>WIN32_ERROR_SERVICE_ALREADY_RUNNING</code></strong></td> <td>0x00000420</td> <td> An instance of the service is already running. </td> </tr> <tr id="constant.win32-error-service-cannot-accept-ctrl"> <td><strong><code>WIN32_ERROR_SERVICE_CANNOT_ACCEPT_CTRL</code></strong></td> <td>0x00000425</td> <td> The requested control code cannot be sent to the service because the state of the service is <strong><code>WIN32_SERVICE_STOPPED</code></strong>, <strong><code>WIN32_SERVICE_START_PENDING</code></strong>, or <strong><code>WIN32_SERVICE_STOP_PENDING</code></strong>. </td> </tr> <tr id="constant.win32-error-service-database-locked"> <td><strong><code>WIN32_ERROR_SERVICE_DATABASE_LOCKED</code></strong></td> <td>0x0000041F</td> <td> The database is locked. </td> </tr> <tr id="constant.win32-error-service-dependency-deleted"> <td><strong><code>WIN32_ERROR_SERVICE_DEPENDENCY_DELETED</code></strong></td> <td>0x00000433</td> <td> The service depends on a service that does not exist or has been marked for deletion. </td> </tr> <tr id="constant.win32-error-service-dependency-fail"> <td><strong><code>WIN32_ERROR_SERVICE_DEPENDENCY_FAIL</code></strong></td> <td>0x0000042C</td> <td> The service depends on another service that has failed to start. </td> </tr> <tr id="constant.win32-error-service-disabled"> <td><strong><code>WIN32_ERROR_SERVICE_DISABLED</code></strong></td> <td>0x00000422</td> <td> The service has been disabled. </td> </tr> <tr id="constant.win32-error-service-does-not-exist"> <td><strong><code>WIN32_ERROR_SERVICE_DOES_NOT_EXIST</code></strong></td> <td>0x00000424</td> <td> The specified service does not exist as an installed service. </td> </tr> <tr id="constant.win32-error-service-exists"> <td><strong><code>WIN32_ERROR_SERVICE_EXISTS</code></strong></td> <td>0x00000431</td> <td> The specified service already exists in this database. </td> </tr> <tr id="constant.win32-error-service-logon-failed"> <td><strong><code>WIN32_ERROR_SERVICE_LOGON_FAILED</code></strong></td> <td>0x0000042D</td> <td> The service did not start due to a logon failure. This error occurs if the service is configured to run under an account that does not have the "Log on as a service" right. </td> </tr> <tr id="constant.win32-error-service-marked-for-delete"> <td><strong><code>WIN32_ERROR_SERVICE_MARKED_FOR_DELETE</code></strong></td> <td>0x00000430</td> <td> The specified service has already been marked for deletion. </td> </tr> <tr id="constant.win32-error-service-no-thread"> <td><strong><code>WIN32_ERROR_SERVICE_NO_THREAD</code></strong></td> <td>0x0000041E</td> <td> A thread could not be created for the service. </td> </tr> <tr id="constant.win32-error-service-not-active"> <td><strong><code>WIN32_ERROR_SERVICE_NOT_ACTIVE</code></strong></td> <td>0x00000426</td> <td> The service has not been started. </td> </tr> <tr id="constant.win32-error-service-request-timeout"> <td><strong><code>WIN32_ERROR_SERVICE_REQUEST_TIMEOUT</code></strong></td> <td>0x0000041D</td> <td> The process for the service was started, but it did not call StartServiceCtrlDispatcher, or the thread that called StartServiceCtrlDispatcher may be blocked in a control handler function. </td> </tr> <tr id="constant.win32-error-shutdown-in-progress"> <td><strong><code>WIN32_ERROR_SHUTDOWN_IN_PROGRESS</code></strong></td> <td>0x0000045B</td> <td> The system is shutting down; this function cannot be called. </td> </tr> <tr id="constant.win32-no-error"> <td><strong><code>WIN32_NO_ERROR</code></strong></td> <td>0x00000000</td> <td> No error. </td> </tr> </tbody> </table> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="win32service.constants.serviceflag.html">Win32Service Service Flag Constants</a></div> <div class="next" style="text-align: right; float: right;"><a href="win32service.constants.basepriorities.html">Win32 Base Priority Classes</a></div> <div class="up"><a href="win32service.constants.html">Predefined Constants</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>