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

search for in the

win32_set_service_status> <win32_get_last_control_message
Last updated: Fri, 05 Sep 2008

view this page in

win32_query_service_status

(No version information available, might be only in CVS)

win32_query_service_statusサービスの状態を問い合わせる

説明

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

サービスの稼動状況を問い合わせ、情報を配列で返します。

パラメータ

servicename

サービスの短い名前。

machine

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

返り値

失敗した場合に FALSE 、それ以外の場合に以下の情報を含む配列を返します。

ServiceType

dwServiceType

CurrentState

dwCurrentState

ControlsAccepted

サービスが許可しているコントロール。

Win32ExitCode

サービスが終了した際にプロセスが返すコード。

ServiceSpecificExitCode

サービスが異常終了した際にイベントログに記録されるコード。

CheckPoint

サービスが終了する際に、現在のチェックポイント番号を保持します。 SCM はこれをいわゆる心拍のように扱い、反応しなくなったサービスを 検出するために使用します。この値は、WaitHint の値と組み合わせて 用いられます。

WaitHint

サービスが終了する際に、WaitHint を checkpoint の値に設定します。 この処理が終了した時点でサービスの終了処理が 100% 完了したことを示します。 これは、進捗状況のインジケータを実装する際に使用します。

ProcessId

Windows のプロセス ID 。0 の場合、プロセスは実行していません。

ServiceFlags

dwServiceFlags



add a note add a note User Contributed Notes
win32_query_service_status
mnemotronic at netscape dot net
25-Oct-2006 07:30
If the service specified is non-existant, "win32_query_service_status" seems to return an integer, not  the expected FALSE value:

$svcStatus=win32_query_service_status ('_bogons_');
echo $svcStatus ;

prints 1060

-- This is for xampp PHP; v5.1.6

win32_set_service_status> <win32_get_last_control_message
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites