home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / misc / 4545 < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.0 KB  |  50 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!mkohtala
  3. From: mkohtala@lesti.hut.fi (Marko Kohtala)
  4. Subject: Help me with Windows virtual DOS machines
  5. Message-ID: <mkohtala.725981596@vipunen.hut.fi>
  6. Summary: How to manage EMS/XMS memory handles under Windows?
  7. Keywords: SRDISK, EMS, XMS, DOS, Windows
  8. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  9. Nntp-Posting-Host: lesti.hut.fi
  10. Reply-To: Marko.Kohtala@hut.fi
  11. Organization: Helsinki University of Technology, Finland
  12. Date:  2 Jan 93 13:33:16 GMT
  13. Lines: 35
  14.  
  15. I have written a resizeable EMS and XMS RAM disk that is available in
  16. Simtel20 ramdisk directory as SRDSK200.ZIP. 
  17.  
  18. Recently I noticed that it does not function under Windows 3.1
  19. Enhanced mode and found out about two problems:
  20.  
  21. 1. The EMS 4.0 supported by Windows VDM does not implement function 24
  22. (Move Memory Region) correctly, but gives always an error (invalid
  23. handle or too big expanded memory region or something).
  24.  
  25. 2. Windows takes good care of freeing the memory allocated to a handle
  26. when the VDM is finished. This causes the memory that the RAM disk
  27. uses to be lost.
  28.  
  29. I give up on the first problem, but on the second I'd like to know if
  30. there is any way to tell Windows not to free the handle allocated in
  31. the VDM.
  32.  
  33. I use a DOS executable to allocate the memory for the RAM disk and the
  34. executable modifies directly the structures in the device driver to
  35. let the driver know which handle to use to access the memory.
  36.  
  37. I do not want to add any IOCTL code to the device driver, but am
  38. interested if it would help to use IOCTL to make the driver allocate
  39. the memory - if the Windows does not free the handle allocated "in
  40. DOS" when the VDM is finished. 
  41.  
  42. If nothing more, an email address to someone in Microsoft and willing to
  43. help would be good.
  44.  
  45. Thank you.
  46. -- 
  47. ---
  48. Marko Kohtala - INTERNET:Marko.Kohtala@hut.fi, mkohtala@otax.tky.hut.fi
  49. Student at (not representative of) the Helsinki University of Technology
  50.