Solved

Interrupt Handling under Windows 95

Posted on 1997-06-29
5
302 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Run Program using VBScript 3 72
How Does Quick Books store date / time? 3 104
Cannot debug web form sthrough Visual Studio 2013 2 83
Visual Studio Debugging 3 138
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.  …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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