Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Interrupt Handling under Windows 95

Posted on 1997-06-29
5
Medium Priority
?
306 Views
Last Modified: 2013-12-03
How can I implement the interrupt handling under Windows
95 ?(I use the Borland 4.02 or 5.0 )
   In fact, I will use the hardware interrupts which comes from a card attached the PC slot.And I want to write an
ISR under Windows 95.
    Please give me some information about this question.
0
Comment
Question by:yucel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
tonp earned 150 total points
ID: 1399547
A 32-bit Win95 application can't install an ISR. You can only do this with a VxD (virtual device driver). A 16-bit application can install a ISR, with the use of DPMI calls for real-mode or protected mode handlers. use DPMI (int 31h) 201h or 205h for this, remember that you must perform selector/segment translation for this. Have a look a Ralf Brown's interrupt list for DPMI details.


0
 

Author Comment

by:yucel
ID: 1399548
Thanks a lot,
Yes,I took an answer to my question but not excellent.
You say "You can not ISR in 32bit windows.You must write a VxD code for making this." But I ask,How?,How can I write Vxd to implement Interrupt handling in win32?
        if You give me some information for this subject ,I will be so glad.(if you give me an example code for this VxD ,it will be so good)
        *****Yucel Dursun  (from Turkey) *****
0
 

Author Comment

by:yucel
ID: 1399549
Thanks a lot,
Yes,I took an answer to my question but not excellent.
You say "You can not ISR in 32bit windows.You must write a VxD code for making this." But I ask,How?,How can I write Vxd to implement Interrupt handling in win32?
        if You give me some information for this subject ,I will be so glad.(if you give me an example code for this VxD ,it will be so good)
        *****Yucel Dursun  (from Turkey) *****
0
 
LVL 2

Expert Comment

by:tonp
ID: 1399550
Writing a VxD is only possible if you have the DDK (Device Driver Kit). The only way to get this is trough a MSDN Level 2 (or higher) subscription (look at www.microsoft.com). It comes complete with samples, however be prepared for a steep learning curve. Another way is to use a product like Vireo's device driver kit (www.vireo.com) which should make startup a lot easier. Look for a VxD faq at www.chsw.com.
0
 

Author Comment

by:yucel
ID: 1399551
Thanks a lot for your answering.
But I still have a problem with VxD. I have DDK kit.But in this kit
many low level programs were written in assembly language.It is too hard to deal with them.But I'm using C language in genaral.
        Can you give me a book name about VxD writing (but specially ,in this book there must be "interrupt handling" section)
except the "System Programming for Windows 95" written by Oney ,Microsoft press.
        Again I thank you for your interestings..  (**Yucel**)  
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

688 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