Solved

Creating a service application

Posted on 2001-08-30
5
259 Views
Last Modified: 2010-04-06
Hello,
Anyone now how to create a service application (ie app running as a service) in NT4 /2000. Thanks
0
Comment
Question by:narrowgate
5 Comments
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6440099
In the Delphi IDE choose "File" - "New..." - "Service Application". But it is a bit dificult to debug service application. So I recomend you to create usual application, test and debug it and when it's ready create a service application using the same unit.

Rgds,
Frodo
0
 
LVL 22

Expert Comment

by:mnasman
ID: 6440114
Take a look at


How to write a Windows NT Service (Delphi 5)
http://www.delphifaq.com/fq/q3055.shtml

Simple NT Service
http://www.aldyn.ru/demos/0001/index.html

An advanced service application
http://www.aldyn.ru/demos/0002/index.html

also this will help you to understand NT services(it's for C++ Builder)
Writing NT Services
http://www.cbuilderzine.com/features/1999/10/cb199910krNT0601_f/cb199910krNT0601_f.asp


0
 
LVL 17

Accepted Solution

by:
inthe earned 200 total points
ID: 6441183
0
 

Author Comment

by:narrowgate
ID: 6441817
Thanks, I'll have a look at these sites. If I can get something working I'll give the points to whoever gave the link.
0
 

Author Comment

by:narrowgate
ID: 6442785
Ok cool, took some fiddling but got there in the end. Have accepted this as answer as the link proved slightly more useful than the others. Sorry mnasman.

Got the service thing running but I was unable to alter the registry of HKEY_CURRENT_USER while running as a service. I have tried other methods to alter keys (without permissions) and figured that if I execute as a service (local system account) I would have some joy. Good but no cigar for me. Anyway this wasn't the question I asked and u have answered the question I did ask so please have the points with my grateful thanks. If you think you may have an answer for the above I will gladly post another question and give u the points to that too. Regards, Rik
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now