In C there is the function getenv( ). What would be an equivalent in Win32? Just out of curiosity what would be an equivalent in DOS? Any source or links would be appreciated.
Posted on 2001-12-02 22:45:37 by Jafo
Try the GetEnvironmentVariable API, strangely enough... :grin:

Or you may want GetEnvironmentStrings...

Both are in KERNEL32 I think... :)

Oops, here's the link on MSDN:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/prothred_27z9.asp

Edited again: I thought I had a DOS example but can't find one at the moment. I think the PSP had the address of the your vars, and you had to find the one you want from there... :cool:
Posted on 2001-12-02 23:53:58 by S/390
Hi Jafo

I got to run

but comb through this




http://www.busybeesolutions.com/sourcefiles/poly.txt
Posted on 2001-12-03 09:51:52 by andy981