NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
# win32service win32service扩展是Windows特定的扩展,允许PHP与服务控制管理器进行通信以启动,停止,注册和注销服务,甚至允许您的PHP脚本作为服务运行 <https://pecl.php.net/package/win32service> - [预定义常量](https://www.php.net/manual/en/win32service.constants.php) - [Win32Service服务类型位掩码](https://www.php.net/manual/en/win32service.constants.servicetype.php) - [Win32Service服务状态常数](https://www.php.net/manual/en/win32service.constants.servicestatus.php) - [Win32Service服务控制消息常量](https://www.php.net/manual/en/win32service.constants.servicecontrol.php) - [Win32Service服务控制消息接受的位掩码](https://www.php.net/manual/en/win32service.constants.controlsaccepted.php) - [Win32Service服务启动类型常量](https://www.php.net/manual/en/win32service.constants.servicestarttype.php) - [Win32Service服务错误控制常数](https://www.php.net/manual/en/win32service.constants.errorcontrol.php) - [Win32Service服务标志常量](https://www.php.net/manual/en/win32service.constants.serviceflag.php) - [Win32错误代码](https://www.php.net/manual/en/win32service.constants.errors.php) - [Win32基本优先级类](https://www.php.net/manual/en/win32service.constants.basepriorities.php) - [Win32恢复操作](https://www.php.net/manual/en/win32service.constants.recovery-action.php) - [Win32服务信息](https://www.php.net/manual/en/win32service.constants.serviceinfos.php) - [例子](https://www.php.net/manual/en/win32service.examples.php) - [win32service函数](https://www.php.net/manual/en/ref.win32service.php) - [win32\_continue\_service](https://www.php.net/manual/en/function.win32-continue-service.php)—恢复暂停的服务 - [win32\_create\_service](https://www.php.net/manual/en/function.win32-create-service.php)—在SCM数据库中创建新的服务条目 - [win32\_delete\_service](https://www.php.net/manual/en/function.win32-delete-service.php)—从SCM数据库中删除服务条目 - [win32\_get\_last\_control\_message](https://www.php.net/manual/en/function.win32-get-last-control-message.php)—返回发送到该服务的最后一条控制消息 - [win32\_pause\_service](https://www.php.net/manual/en/function.win32-pause-service.php)—暂停服务 - [win32\_query\_service\_status](https://www.php.net/manual/en/function.win32-query-service-status.php)—查询服务状态 - [win32\_send\_custom\_control](https://www.php.net/manual/en/function.win32-send-custom-control.php)—将自定义控件发送到服务 - [win32\_set\_service\_exit\_code](https://www.php.net/manual/en/function.win32-set-service-exit-code.php)—定义或返回当前正在运行的服务的退出代码 - [win32\_set\_service\_exit\_mode](https://www.php.net/manual/en/function.win32-set-service-exit-mode.php)—定义或返回当前正在运行的服务的退出模式 - [win32\_set\_service\_status](https://www.php.net/manual/en/function.win32-set-service-status.php)—更新服务状态 - [win32\_start\_service\_ctrl\_dispatcher](https://www.php.net/manual/en/function.win32-start-service-ctrl-dispatcher.php)—向SCM注册脚本,以便它可以使用给定名称充当服务 - [win32\_start\_service](https://www.php.net/manual/en/function.win32-start-service.php)—启动服务 - [win32\_stop\_service](https://www.php.net/manual/en/function.win32-stop-service.php)—停止服务