O$: Studio 10, getting environment variables

Debra Peters dshaberlanda at yahoo.com
Mon Jun 17 16:06:02 EDT 2019


We are working to migrate from Studio 5 to Studio 10. One of the things that 
does not translate directly is how we are retrieving environment variables.

We use something like the following:
Register DLL ('kernel32.dll','GetEnvironmentVariableW','JCC')
Call DLL ('kernel32.dll','GetEnvironmentVariableW','CLIENTNAME',varClientName) 
Returns %%Error

We retrieve CLIENTNAME, COMPUTERNAME, USERDOMAIN, and a few other environment 
variables

I've searched the archives and either my Google-foo is lousy (definitely a 
possibility), or the answer isn't there.
Does anyone know how to get these values from within Studio 10?

Deb Peters

-- 
KI5BES

???Live a good and honorable life, then when you get older and think back, you???ll enjoy it a second time.???




More information about the omnisdev-en mailing list