Home arrow Delphi-Kylix arrow Creating a Windows Service in Delphi

Creating a Windows Service in Delphi

Service applications let you check for updates on a system or monitor system resources, without interrupting your work. While they can be difficult to create, Delphi makes it simple. This article explains how to create a simple Windows service application in Delphi, which you can build on and modify to suit your own needs.

Author Info:
By: Jacques Noah
Rating: 5 stars5 stars5 stars5 stars5 stars / 106
February 08, 2006
  1. · Creating a Windows Service in Delphi
  2. · Letís Create a Service
  3. · The Code
  4. · Installing/Uninstalling the Service
  5. · Entire Code for the Service Application

print this article

Creating a Windows Service in Delphi
(Page 1 of 5 )


A service is an application type that runs in the background, and is similar to UNIX daemon applications. It is an ideal way to check for updates on a remote system or to monitor system resources, without interrupting whatever youíre doing in the front end. If you open up Task Manager by pressing Ctrl + Alt + Del, you will see a list of Services currently running on your system. Hereís a sample:


Why would you need a service application? Well, if you have a networked system that is on 24/7, and you want to monitor the amount of resources used by a certain application, then a service is the best way to do it. Similarly, if you write software that requires updates from time to time, you can create a service that will look for those updates and download them. So, service applications have a lot of advantages. The only problem with Services is that they are not very flexible in that you cannot use any visual components in the application. You'll get an exception "Controls Cannot Be Added to a Service" message if you try to drop a visual component.

Is it difficult to create a service? Yes, mostly because it is a special type of application. Fortunately for us, Delphi makes it very easy to build one.

blog comments powered by Disqus

- Loading an XML Document into the DOM
- Delphi Wrapper Classes and XML
- Delphi and the DOM
- Delphi and XML
- Internet Access: Client Service
- Finishing the Client for an Internet Access ...
- The Client for an Internet Access Control Ap...
- User Management for an Internet Access Contr...
- Important Procedures for an Internet Access ...
- Server Code for an Internet Access Control A...
- Constructing the Interface for an Internet A...
- Building a Server Application for an Interne...
- Building an Internet Access Control Applicat...
- Client Dataset: Working with Data Packets an...
- Using the Client Dataset in an N-Tiered Appl...

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 

Developer Shed Affiliates


© 2003-2019 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials