ingea@IFI.UIO.NO (Inge Arnesen) (09/14/90)
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. == == ==
gt3070b@prism.gatech.EDU (Jeff Watkins) (09/15/90)
Try GetDOSEnvironment() which returns a LPSTR to the environment string. Hope that helps... jeff -- Jeff Watkins gt3070b@prism.gatech.edu Convergent Media Systems (404) 315-0105 voice (404) 315-0231 data "I speak for no-one. AND NO-ONE SPEAKS FOR ME... oh, yes, _dear_...I gotta go..."