home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4835 < prev    next >
Encoding:
Text File  |  1993-01-11  |  2.2 KB  |  57 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!torn!nott!bnrgate!bcars267!bcarh829!tracyb
  3. From: tracyb@bnr.ca (Tracy Blomquist)
  4. Subject: ? Device Interface w/o DDK ?
  5. Message-ID: <1993Jan11.144522.7687@bnr.ca>
  6. Sender: news@bnr.ca (usenet)
  7. Nntp-Posting-Host: bcarh829
  8. Organization: Bell Northern Research
  9. X-Newsreader: TIN [version 1.1 PL6]
  10. Distribution: na
  11. Date: Mon, 11 Jan 1993 14:45:22 GMT
  12. Lines: 43
  13.  
  14. I have a PC card that requires the use of h/w int 2-5 (one of)
  15. and reading/writing to several ports.  I want to port the DOS
  16. app that uses it to Windows.  I don't have the DDK. 
  17.  
  18. I read an article in MSJ a while back about "embedded device
  19. drivers" in windows apps.  But these drivers can only access
  20. devices generating ints >= 30h. I'm thinking about the following
  21. approach to get it to work...
  22.  
  23.         ----------------------------
  24. Windows|   Windows App int. to DOS  |
  25.         ----^-----------------------
  26.            r/w      | int > 30h  ^
  27.             |       V            | int > 30h
  28.         ----V------------------------
  29. DOS    | Data Buf | Dos device driver|
  30.         ----^------------------------
  31.             |       ^
  32.          port i/o   | int 
  33.             |       | 2-5
  34.         ----V-----------------------
  35. Device |          PC Card           |
  36.         ----------------------------
  37.  
  38. Basically the card interrupts a DOS device driver or TSR (loaded at DOS
  39. startup) which will call a s/w int that windows will grab.  Windows
  40. will then read the appropriate data from the DOS data buffer area.
  41.  
  42. Is this workable?  If so, does anyone know of a skeleton that I can
  43. use for this to save myself starting from scratch?   How can I get 
  44. windows to find the location of the DOS data buffer area to read/write
  45. to/from it?
  46.  
  47. Is there a better solution?
  48.  
  49. --
  50. Thanks,
  51. ,----------------------,------------------------.---------------------,
  52. | Karl Tracy Blomquist | E-MAIL: tracyb@bnr.ca  | Fax: 1-613-765-4018 |
  53. | Consultant           |                        | Ph:  1-613-765-4886 |
  54. `----------------------'------------------------'---------------------'
  55. | Bell-Northern Research, P.O.Box 3511, Stn C, Ottawa, Ont., K1Y-4H7  |
  56. `---------------------------------------------------------------------'
  57.