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.
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:
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: