home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!snorkelwacker.mit.edu!ira.uka.de!ira.uka.de!chx400!dxcern!hagen
- From: hagen@dxcern.cern.ch (Per Hagen)
- Subject: How to use LoadModule()
- Message-ID: <1992Nov13.192313.24872@dxcern.cern.ch>
- Organization: CERN European Laboratory for Particle Physics
- Date: Fri, 13 Nov 1992 19:23:13 GMT
- Lines: 16
-
- Help!
-
- Do anybody know how to use the LoadModule() function in Windows ???
-
- I need to change an environment variable for one application only.
-
- I only manage to use LoadModule((LPSTR)"APP.EXE", (LPVOID)loadarg)
- if loadarg.segEnv = 0
-
- If I try to pass the segment address of GetDosEnvironment() or the
- segment address of a GlobalLock() or the segment address of GlobalDosAlloc()
- I always end up with exception 13.
-
- It is Friday 13th and I'm stuck!
-
- Per HAGEN
-