home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3333 < prev    next >
Encoding:
Text File  |  1992-11-09  |  1.9 KB  |  47 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!cavebbs!linz
  3. From: linz@cavebbs.welly.gen.nz (Lindsay Mathieson)
  4. Subject: Re: Interrupts under Windows ?
  5. References: <1992Nov7.185758.14930@cs.tu-berlin.de>
  6. Organization: The Cave MegaBBS, Public Access Usenet, Wellington, NZ
  7. Message-ID: <1992Nov09.220311.6579@cavebbs.welly.gen.nz>
  8. Date: Mon, 09 Nov 92 22:03:11 GMT
  9. Lines: 36
  10.  
  11. In article <1992Nov7.185758.14930@cs.tu-berlin.de> winkler@cs.tu-berlin.de (Barbara Maren Winkler) writes:
  12. >
  13. >Hello,
  14. >
  15. >does anybody know how to program an interrupt under Windows (3.1)?
  16. >Or any other way to really stop execution until the last statement
  17. >(in C) has finished?
  18. >
  19. >The problem is: We want to write a driver for an external device,
  20. >(a laser video player -- Bildplattenspieler in German). We can
  21. >write to it, but when we want to read (a character), Windows
  22. >doesn't wait for any character to come back; it immediately
  23. >continues with the next statement. Under DOS without windows,
  24. >we did this with an interrupt and it worked, but Windows obviously
  25. >has masked the interrupt somehow.
  26. >
  27. >Does anybody know a solution?
  28. >
  29. >Thanks
  30. >--
  31. >Barbara Maren Winkler                   winkler@opal.cs.tu-berlin.de
  32. >=======================================================================
  33.  
  34. I presume you are calling an interrupt for the driver supplied with
  35. the disc player - i.e. a custom one, not a standard dos int. Bassically that
  36. will not work as expected under windows.
  37.  
  38. Windows is a protected mode application, calling interrupts violates that. You
  39. can call some standard dos int, such as int 24 (I think) because windows
  40. intercepts and does them safely. To call others you need to use DPMI
  41. services, which is pretty tricky and can cause many GPF's!
  42.  
  43. There's no documentation on DPMI to speak of from MS or Borland, bbut there sure to be some somewhere on the net. Look for the DPMI SPEC vs 0.9. Also your
  44. local borland/ms rep may have a copy
  45.  
  46.  
  47.