By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,461 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

how to access interrupt vector table in windows

profall
P: 7
can a c program written as a tsr work in windows?
Oct 30 '10 #1
Share this Question
Share on Google+
7 Replies


weaknessforcats
Expert Mod 5K+
P: 9,197
tsr is an old 16-bit DOS technique to simulate multithreading.

In Windows today you use a service instead. You do not call for interrupts any more as they are managed by the system.
Nov 3 '10 #2

profall
P: 7
i am new to windows programming .....
what if we want to capture any key press,etc from background... as we could do by writing a tsr that calls interrupt 9 and then access keyboard port at 0x20?
Nov 4 '10 #3

weaknessforcats
Expert Mod 5K+
P: 9,197
Windows programming uses an event handler for this.

You intercept WM_KEYDOWN and process from there.

Unfortunately, you will need to obtain a book on Windows programming so you can get this to work. BTW: If DOS programming is 1 on scale of 1 to 10, Windows programming is 42.
Nov 4 '10 #4

profall
P: 7
thank you for your reply....
Nov 5 '10 #5

profall
P: 7
as you said sir weaknessforcats,i managed to learn how to process simple window events like WM_KEYDOWN,
however it is capturing the keyevent only when the my application has user focus, i wonder if there is any way for a process running in background to know what keys are being pressed....
Nov 6 '10 #6

weaknessforcats
Expert Mod 5K+
P: 9,197
I am not going to provide more infomration on this topic.

A background program intercepting keystrokes is a typical phish stunt. Since I don't know who you are personally, I cannot proceed further.
Nov 6 '10 #7

profall
P: 7
ok sir weaknessforcats,if you dont want to proceed further,even i would not do that by any other means.

sir i want to know if there is any need to learn new technologies like .net ,web services,etc(i dont know any more) if i am already learning web programming in vc++ and java ,since i am hearing much about these technologies.........

by the way i am a student of btech in computer science(1st year) in New Delhi,India.
college: (Indraprastha engineering college).
Nov 7 '10 #8

Post your reply

Sign in to post your reply or Sign up for a free account.