Solved

Convert app in a service for WinNT 4.0

Posted on 1997-11-26
4
137 Views
Last Modified: 2010-04-04
My app should run without any user is logged on. The only
idea I have is to convert it into a service - but I dont know how !
Any other suggestions are welcome !
0
Comment
Question by:egono
  • 2
4 Comments
 
LVL 5

Expert Comment

by:JimBob091197
ID: 1352020
Hi

Just a small comment...
Windows 95 has 2 registry keys, one which runs programs AFTER the user has logged on, and the other which runs programs BEFORE any user has logged on.  I don't know if this works on NT, but you can give it a try.

To run a program AFTER user has logged on, add an entry to the following registry key:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run

To run a program BEFORE a user logs on, add an entry here:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices

The 1st key (Run) works on NT, but I haven't tested the 2nd one (RunServices) on NT.

Regards,
JB
0
 
LVL 3

Accepted Solution

by:
mirek071497 earned 200 total points
ID: 1352021
Hi this is full template for the services in delphi :
http://www.info-pro.no/sperling/files/serviceskeleton.zip
If You have any other question then submit comment.
0
 
LVL 2

Author Comment

by:egono
ID: 1352022
Is it free to use ?

0
 
LVL 3

Expert Comment

by:mirek071497
ID: 1352023
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 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

17 Experts available now in Live!

Get 1:1 Help Now