Path: utzoo!attcan!uunet!wuarchive!zaphod.mps.ohio-state.edu!sdd.hp.com!ucsd!ucbvax!IFI.UIO.NO!ingea From: ingea@IFI.UIO.NO (Inge Arnesen) Newsgroups: comp.windows.ms Subject: Getenv() from DLLs Message-ID: Date: 14 Sep 90 16:43:18 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 14 X-Unparsable-Date: Fri, 14 Sep 90 18:42:13 MET DST The getenv() call will always return an empty string when executed from a DLL. This is, i believe, since a DLL has no PSP (or environment). But, how can I get the values of environment variables from withing a DLL ? Scanning through memory is not a very nice way of doing it (taking the list of lists and scanning), especially if it is supposed to be portable between modes. Any ideas anyone ? Inge (BoB) { ingea@ifi.uio.no } ========================================================================= == Inge Arnesen, University of Oslo, Norway. == == ==