Science, Tech, Math › Computer Science Creating Windows Service Applications Using Delphi Use Delphi's tools to generate long-running background apps Share Flipboard Email Print Viewing Svchost.exe Services in Task Manager (Windows 10). Computer Science Delphi Programming Advanced Delphi Tutorials PHP Programming Perl Python Java Programming Javascript Programming C & C++ Programming Ruby Programming Visual Basic View More By Zarko Gajic Zarko Gajic Twitter Computer Science Expert MSCS, Computer Science, University of Osijek Zarko Gajic is experienced in SQL and has working knowledge of DB systems such as MS SQL Server, Firebird, Interbase, and Oracle. He is also proficient in XML, DHTML, and JavaScript. Learn about our Editorial Process Updated on February 21, 2019 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 Use Delphi to create service applications: Create a service, install and uninstall the service application, make the service do something, and debug the service application using the TService.LogMessage method. Develop a Windows service using Delphi and register it with 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. 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. Generate advanced status reporting for running Windows services. The OpenSCManager() and OpenService() functions highlight Delphi's flexibility with the Windows platform. 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. 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. Cite this Article Format mla apa chicago Your Citation Gajic, Zarko. "Creating Windows Service Applications Using Delphi." ThoughtCo, Feb. 16, 2021, thoughtco.com/creating-windows-service-applications-1058458. Gajic, Zarko. (2021, February 16). 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 June 10, 2023). copy citation Featured Video