#GetEnvString() prob.
09-Aug-93 01:21:14
Sb: #50892-#GetEnvString() prob.
Fm: Lee Hart [Microsoft] 76150,2536
To: Arun Rele 71155,321
>>>I have a Win32 application that displays the current environment in a
list box using GetEnvironmentString() and then filling the list box.
Under NT it works fine, but under Win32s, all of the environment
variables set in DOS are shown, but only a few of the environment
variables set by the program are shown. Subsequent calls to getenv()
show that the variables that are not shown are in fact set.
>>>Is there a problem with GetEnvironmentString() under Win32s 1.0?
No, I have not heard of such problems. However, the comments in the
GetEnvironmentStrings() API state that it should not be used to retrieve the
values of an environment variable, but that GetEnvironmentVariable() should
be used. Have you tried using GetEnvironmentVariable?
Lee
There is 1 Reply.