delphi 应用程序工厂_使用Delphi创建Windows服务应用程序

本文介绍了如何使用Delphi开发Windows服务应用程序,包括创建、安装、卸载服务,使用TService.LogMessage进行调试,以及如何在Windows 10和Windows Server上遵循最佳实践。通过Delphi,开发者可以实现服务的启动、停止,获取已安装服务信息,并生成运行状态报告。
摘要由CSDN通过智能技术生成

delphi 应用程序工厂

Service applications take requests from client applications, process those requests, and return information to the client applications. They typically run in the background without much user input.

服务应用程序从客户端应用程序获取请求,处理这些请求,然后将信息返回给客户端应用程序。 它们通常在没有大量用户输入的情况下在后台运行。

Windows services, known also as NT services, offer long-running executable applications that run in their own Windows sessions. These services can be automatically started when the computer boots, can be paused and restarted, and do not show any user interface

Windows服务(也称为NT服务)提供在其自己的Windows会话中运行的长期运行的可执行应用程序。 这些服务可以在计算机启动时自动启动,可以暂停和重新启动,并且不显示任何用户界面

使用Delphi的服务应用程序 ( Service Applications Using Delphi )

Use Delphi to create service applications:

使用Delphi创建服务应用程序:

  • Create a service, install and uninstall the service application, make the service do something, and debug the service application using the TService.LogMessage method.

    创建服务 ,安装和卸载服务应用程序,使服务执行某些操作,然后使用TService.LogMessage方法调试服务应用程序。

  • Develop a Windows service using Delphi and register it with Windows.

    使用Delphi开发Windows服务并在Windows中注册。

  • Start and stop a Windows service using Delphi to call Win32 functions, for those cases when you must restart one or more services to avoid conflicts at the operating-system level.

    对于那些必须重新启动一个或多个服务以避免在操作系统级别发生冲突的情况,使用Delphi 启动和停止 Windows服务以调用Win32函数。

  • Retrieve all currently installed services to help both the end user and Delphi programs respond appropriately to the presence, absence or status of specific Windows services.

    检索所有当前安装的服务,以帮助最终用户和Delphi程序对特定Windows服务的存在,不存在或状态做出适当的响应。

  • Generate advanced status reporting for running Windows services. The OpenSCManager() and OpenService() functions highlight Delphi's flexibility with the Windows platform.

    生成用于运行Windows服务的高级状态报告OpenSCManager()OpenService()函数突出了Delphi在Windows平台上的灵活性。

有关Windows Services和Delphi的更多信息 ( More About Windows Services and Delphi )

Although Delphi is optimized more for typical user-fronted applications, the programming language remains capable of creating service applications. Newer versions of Windows (especially Windows 10) have tightened the rules that service applications have to play by, relative to Windows XP and Windows Vista.

尽管Delphi为典型的基于用户的应用程序进行了更多优化,但是该编程语言仍然能够创建服务应用程序。 相对于Windows XP和Windows Vista,较新版本的Windows(尤其是Windows 10)已经加强了服务应用程序必须遵循的规则。

If you develop service applications using Delphi, review Microsoft's current technical documentation to orient yourself to best practices for Windows 10 and Windows Server.

如果您使用Delphi开发服务应用程序,请查阅Microsoft 当前的技术文档以使自己适应Windows 10和Windows Server的最佳实践。

翻译自: https://www.thoughtco.com/creating-windows-service-applications-1058458

delphi 应用程序工厂

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值