Computing.Net > Forums > Programming > TSR in Windows

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

TSR in Windows

Reply to Message Icon

Name: HSon
Date: February 5, 2002 at 13:59:45 Pacific
Comment:

Hello,

I know how to write simple tsr programs in (16-bit) assembly language in dos. But I would like to know whether windows have tsr programs, if so, do the technique to write is also similiar (such as intercepting interrupts). And can the programs in system trays be call tsr according tsr concepts. And how to write a progam to stay in the memory while others are running (like the one at the bottom right conor on the screen)?

Would anybody please to help me ? because i really desire to know. My tsr program in dos cannot work in windows anymore.

Thanks a lot!



Sponsored Link
Ads by Google

Response Number 1
Name: Guy
Date: February 5, 2002 at 15:16:32 Pacific
Reply:

I think what you want is called a 'system service'.

They can be started at boot, and remain until the system crashes or is shutdown.

I know nothing about the API, but this should be documented in any decent Windows C/C++ compiler docs.

Can you write them in Assembler? I would guess you can, but I'd prototype in C first.

Guy


0

Response Number 2
Name: HSon
Date: February 5, 2002 at 15:49:23 Pacific
Reply:

I used to teach myself Pascal and Assembly, but now i have to learn C.

Ah, I like to ask another question.
In DOS, we have int 21h to call the DOS functions, but it won't work in windows (I guess), however, will the interrupts of BIOS with different functions still work well in woindows?

Thanks!

HSon


0

Response Number 3
Name: Fred
Date: February 5, 2002 at 20:03:31 Pacific
Reply:

Hello,
TSR has been replaced with threads which are different in a lot of ways, time slice and priority levels, interrupts no longer used.

In windows you do not have to call for interupts as in dos, you the memory and time slice is allocated by the system when your application starts and is recovered when you exits or part of your application go's out of scope.

There are many langages that you can use for Windows, the most popular are C++(powerful) and Visual Basic(easy).



0

Response Number 4
Name: Fred
Date: February 5, 2002 at 20:19:29 Pacific
Reply:

PS:
Windows applications do not have to be visible to be running, With (SERVICES) the user does'nt need to be Logged In for the application to be running in the background, some application are simply invisible which is bool, others just don't have a user interface and others that are(.dll) "dynaiclly linking library", which exposes there methods or API only to other applications.

The tray on the bottom is just part of Windows API as stated above by Guy, "ComponentTray class".


0

Response Number 5
Name: vikhyat
Date: February 7, 2002 at 05:34:52 Pacific
Reply:

hi fred,
do u mean to say that u don't use interrupts any more in windows......
well i had made some screen saver programs in C as a tsr by capturing the timer interrupt, and when i execute it in the command prompt of windows 98 its runs as long as the command prompt is there or Turbo C++ IDE is running or any DOS based platform is running.....
this means u still have interrupts there in win 9x.....
i'd wait for a comment....


0

Related Posts

See More



Response Number 6
Name: Fred
Date: February 8, 2002 at 22:31:05 Pacific
Reply:

Yes they may run in the DOS or CMD window, which itself is a window/ one thread that is handled by Win16 (16-bit MS-DOS emulation layer) which simulates the native Windows 3.x processing.

DOS emulation layer
-------------------
Dosx.exe = DPMI interface TSR program
Himem.sys = Extended memory specification (XMS) driver
Mscdexnt.exe = MSCDEX interface TSR program
Ntdos.sys = MS-DOS system kernel
Ntio.sys = MS-DOS input/output (I/O) kernel
Redir.exe = NetBIOS interface TSR program

Windows 3.1 kernel layer
--------------------------
Toolhelp.dll = Win16 tool helper API
User.exe = Win16 User Manager interface
Gdi.exe = Win16 Graphics Manager interface
Shell.dll = Win16 shell interface
Krnl386.exe = Win16 kernel
Mmsystem.dll = Win16 multimedia API


0

Response Number 7
Name: Sachin Dusane
Date: May 4, 2002 at 06:26:45 Pacific
Reply:

Dear Sir/Madam,

I would like to know how to access IVT from VC++. Is there any way to write Interrupt or TSR in VC++ (Apart from Windows API)

Sachin


0

Response Number 8
Name: vishal chopra
Date: July 5, 2002 at 08:49:24 Pacific
Reply:

hello every body,
iam a newbie for windows programming . i want to make a windows program which runs in background .i would be very thankful if any body could tell me how should i start


0

Response Number 9
Name: b.v.karan
Date: July 9, 2002 at 04:49:36 Pacific
Reply:

please explain me what is tsr and where it's uasage.

karan


0

Sponsored Link
Ads by Google
Reply to Message Icon

Copying String to String ... reading from IR port



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: TSR in Windows

how to write resident programm in window www.computing.net/answers/programming/how-to-write-resident-programm-in-window/932.html

Sound priority in Windows www.computing.net/answers/programming/sound-priority-in-windows/6111.html

read with non_block in Windows www.computing.net/answers/programming/read-with-nonblock-in-windows/10127.html