win32_start_service

(PECL win32service >=0.1.0)

win32_start_serviceStarts a service

Beschreibung

win32_start_service(string $servicename, string $machine = ?): void

Attempts to start the named service. Requires administrative privileges or an account with appropriate rights set in the service's ACL.

Parameter-Liste

servicename

The short name of the service.

machine

Optional machine name. If omitted, the local machine is used.

Rückgabewerte

Es wird kein Wert zurückgegeben.

Prior to version 1.0.0, gab im Erfolgsfall WIN32_NO_ERROR zurück oder false, wenn es ein Problem mit den Parametern gab oder einen Win32-Fehlercode im Fehlerfall.

Fehler/Exceptions

A ValueError is thrown if the value of servicename parameter is empty.

A Win32ServiceException is thrown on error.

Changelog

Version Beschreibung
PECL win32service 1.0.0 Throws a ValueError on invalid data in parameters, previously false was returned.
PECL win32service 1.0.0 Throws a Win32ServiceException on error, previously a Win32 Error Code was returned.
PECL win32service 1.0.0 The return type is now void, previously it was mixed.
PECL win32service 0.3.0 This function does not longer require an administrator account if ACL is set for another account.

Siehe auch

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

PHPUnit in der Version 10 erschienen

Das beliebte Testframeworks PHPUnit ist in der Version 10 erschienen und steht zum Download bereit ...

TheMax

Autor : TheMax
Kategorie: Software & Web-Development

Laravel 10 veröffentlicht

Laravel Version 10 steht mit einer Mindestanforderung von PHP 8.1 zum Download bereit. ...

admin

Autor : admin
Kategorie: Software & Web-Development

DeepL Erweiterung Write als beta veröffentlicht

DeepL hat eine neuen Dienst Namens „write“ veröffentlicht, der die Rechtschreibung und Grammatik mit KI verbessern soll. ...

admin

Autor : admin
Kategorie: Dies und Das

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Restart the Stream for Fubo TV

The issue could be with a particular channel streaming. Turn off the stream you are facing issues with and try another channel. If that channel st ...

Geschrieben von hensen5005 am 28.05.2023 00:19:38
Forum: Fragen/Vorschläge zum Forum
Check internet speed for smooth function of Fubo TV

Quite often, problems with streaming applications are related to slow internet speeds. So try using other apps like Youtube and check whether your ...

Geschrieben von hensen5005 am 28.05.2023 00:11:16
Forum: Fragen/Vorschläge zum Forum
Reinstall or update the application Fubo App

Much like other applications, Fubotv/connect (https://www.fubo-connect.com/) also receives updates over time. So if there is any pending update fo ...

Geschrieben von hensen5005 am 28.05.2023 00:02:36
Forum: Fragen/Vorschläge zum Forum
Peacock offers faster access to Universal films

In July 2021, Universal released The Boss Baby 2 in theaters, and also for paid subscribers to Peacock on the same day. It did the same in October ...

Geschrieben von hensen5005 am 27.05.2023 23:51:25
Forum: Fragen/Vorschläge zum Forum