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

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!snorkelwacker.mit.edu!ira.uka.de!ira.uka.de!chx400!dxcern!hagen
  3. From: hagen@dxcern.cern.ch (Per Hagen)
  4. Subject: How to use LoadModule()
  5. Message-ID: <1992Nov13.192313.24872@dxcern.cern.ch>
  6. Organization: CERN European Laboratory for Particle Physics
  7. Date: Fri, 13 Nov 1992 19:23:13 GMT
  8. Lines: 16
  9.  
  10. Help!
  11.  
  12. Do anybody know how to use the LoadModule() function in Windows ???
  13.  
  14. I need to change an environment variable for one application only.
  15.  
  16. I only manage to use LoadModule((LPSTR)"APP.EXE", (LPVOID)loadarg)
  17. if loadarg.segEnv = 0
  18.  
  19. If I try to pass the segment address of GetDosEnvironment() or the
  20. segment address of a GlobalLock() or the segment address of GlobalDosAlloc()
  21. I always end up with exception 13.
  22.  
  23. It is Friday 13th and I'm stuck!
  24.  
  25. Per HAGEN
  26.