Solved

Interrupt Handling under Windows 95

Posted on 1997-06-29
5
299 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
  • 3
  • 2
5 Comments
 
LVL 2

Accepted Solution

by:
tonp earned 50 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now