note 92365 added to function.win32-query-service-status
| From: | demers dot alex at gmail dot com | Date: | Tue, 21 Jul 2009 15:39:47 +0000 |
| Subject: | note 92365 added to function.win32-query-service-status | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-158551@lists.php.net to get a copy of this message | ||
This function will return an array containing the above information as a return value, but if this
fails it will return an integer which is a System Error Code. All the System Error Codes can be
found here:
http://msdn.microsoft.com/en-us/library/ms681381%28VS.85%29.aspx
In my case, it returned 5, in which I immediately knew why and fixed the issue right away.
In the case of mnemotronic at netscape dot net, here in the documentation notes, it returned 1060
which is:
ERROR_SERVICE_DOES_NOT_EXIST
1060 (0x424)
The specified service does not exist as an installed service.
Again, it should not return FALSE, instead an System Error Code for Windows.
----
Server IP: 72.55.140.6
Probable Submitter: 208.124.129.220
----
Manual Page -- http://www.php.net/manual/en/function.win32-query-service-status.php
Edit -- https://master.php.net/note/edit/92365
Del: integrated -- https://master.php.net/note/delete/92365/integrated
Del: useless -- https://master.php.net/note/delete/92365/useless
Del: bad code -- https://master.php.net/note/delete/92365/bad+code
Del: spam -- https://master.php.net/note/delete/92365/spam
Del: non-english -- https://master.php.net/note/delete/92365/non-english
Del: in docs -- https://master.php.net/note/delete/92365/in+docs
Del: other reasons-- https://master.php.net/note/delete/92365
Reject -- https://master.php.net/note/reject/92365
Search -- https://master.php.net/manage/user-notes.php