TSR programs in Delphi 3


I would like to write one Terminate and stay resident(TSR) program in Delphi.Experts can you help me?
LVL 1
veeramaniAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RadlerConnect With a Mentor Commented:
The concept of TSR to Windows was replaced by Virtual Device Drivers or Services. Make one or other is painfull. The most aproximated thing is a hided application( Simple service ) that can be done to Windows 9x easily with:

interface

function RegisterServiceProcess(dwProcessID, dwType: Integer): Integer; stdcall; external 'KERNEL32.DLL';

implemmentation


procedure Seila( .... )
begin
....
RegisterServiceProcess( 0, 1 );//Hide app
.....
RegisterServiceProcess( 0, 0 ) //Unhide App
....
end;

T++, Radler.
0
 
MotazCommented:
TSR is only for DOS os, but now in windows such applications called services, or you can write normal applications then show it's icon in system tray instead of Task bar.

See this document for more information about System tray applications.

http://www.borland.com/devsupport/delphi/faq/FAQ2911D.html 

Motaz
0
 
msediCommented:
Hello,

could you please be a little more specific with your problem in order to find the right way.

Thanks, Martin
0
 
veeramaniAuthor Commented:
Thank you very much,i accept your comment.
Regards,
veeramani
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.