Creating Windows Service Applications Using Delphi

Delphi Service Application Wizard
Delphi Service Application Wizard.

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.

 

Service Applications Using Delphi

Tutorial for making a service application using Delphi
In this detailed tutorial, you'll learn how to create a service, install and uninstall the service application, make the service do something and debug the service application using the TService.LogMessage method. Includes sample code for a service application and a brief FAQ section.

Creating a Windows service in Delphi
Walk through the details of developing a Windows service using Delphi. This tutorial not only includes the code for a sample service, it also explains how to register the service with Windows.

Starting and stopping a service
When you install certain types of programs, it may be necessary to restart related services to avoid conflicts. This article offers detailed sample code to help you start and stop a Windows service using Delphi to call Win32 functions.

Getting a list of installed services
The programmatic retrieval of all currently installed services helps both the end user and Delphi programs to respond appropriately to the presence, absence or status of specific Windows services.

This article offers the code you'll need to get started.

Check the status of a service
Learn how a few straightforward functions support advanced status reporting for running Windows services. Special emphasis and code examples for the OpenSCManager() and OpenService() functions highlight Delphi's flexibility with the Windows platform.

Format
mla apa chicago
Your Citation
Gajic, Zarko. "Creating Windows Service Applications Using Delphi." ThoughtCo, Jan. 12, 2017, thoughtco.com/creating-windows-service-applications-1058458. Gajic, Zarko. (2017, January 12). Creating Windows Service Applications Using Delphi. Retrieved from https://www.thoughtco.com/creating-windows-service-applications-1058458 Gajic, Zarko. "Creating Windows Service Applications Using Delphi." ThoughtCo. https://www.thoughtco.com/creating-windows-service-applications-1058458 (accessed November 24, 2017).