downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

win32_get_last_control_message> <win32_create_service
[edit] Last updated: Fri, 25 May 2012

view this page in

win32_delete_service

(PECL win32service SVN)

win32_delete_serviceSCM データベースからサービスのエントリを削除する

説明

mixed win32_delete_service ( string $servicename [, string $machine ] )

SCM データベースからサービスの削除を試みます。管理者権限が必要です。

この関数は、単にサービスに削除マークをつけるだけです。もし他のプロセス (サービスアプレットなど)が開かれた場合、削除処理はそのアプリケーションが 終了するまで延期されます。サービスに削除マークがつけられると、それ以降は 同じサービスに対する削除の試行は失敗します。また同名の新規サービスを作成 しようとする処理も失敗します。

パラメータ

servicename

サービスの短い名前。

machine

オプションのマシン名。指定しなかった場合、ローカルマシンが使用されます。

返り値

成功した場合に WIN32_NO_ERROR を返します。パラメータに問題がある場合は FALSE、失敗した場合は Win32 エラーコード を返します。

例1 win32_delete_service() の例

dummyphp サービスを削除します。

<?php
win32_delete_service
('dummyphp');
?>

参考



add a note add a note User Contributed Notes win32_delete_service
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites