Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TSR programs in Delphi 3

Posted on 2000-04-24
4
Medium Priority
?
581 Views
Last Modified: 2012-05-04

I would like to write one Terminate and stay resident(TSR) program in Delphi.Experts can you help me?
0
Comment
Question by:veeramani
4 Comments
 
LVL 7

Expert Comment

by:Motaz
ID: 2746441
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
 
LVL 4

Accepted Solution

by:
Radler earned 200 total points
ID: 2747346
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
 
LVL 1

Expert Comment

by:msedi
ID: 2750804
Hello,

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

Thanks, Martin
0
 
LVL 1

Author Comment

by:veeramani
ID: 2750834
Thank you very much,i accept your comment.
Regards,
veeramani
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

877 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