954,505 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to write TSR's for windows enviorment

hi ,
How are you? I am using a software for my business.I want a tsr program which can help me stop using of some buttons from the keyboard.Like cntrl+delete combination key, f6 function key and some others. And in the same way i want a program to deactivate the above program to make the keyboard keys function normally. I am using windows xp .Please help me .

adr1
Newbie Poster
1 post since May 2007
Reputation Points: 10
Solved Threads: 0
 

you need to write a win32 program that hooks into the keyboard. See SetWindowsHookEx function in MSDN

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 
dwks
Posting Whiz in Training
269 posts since Nov 2005
Reputation Points: 185
Solved Threads: 28
 

and it would not be a TSR. That name is specific to a category of DOS programs that would load and stay in the background.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

As far as I can see, a TSR is simply:
TSR
Terminate and Stay Resident. A program that remains in memory after it has been loaded.From http://www.novastars.com/network/lan-glossary.htm#T

dwks
Posting Whiz in Training
269 posts since Nov 2005
Reputation Points: 185
Solved Threads: 28
 

some keys cannot be hooked by the way (they are reserved for the OS e.g control+alt+del)

jbennet
Moderator
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You