Steve,
Sorry I didn't say this from the first, because I didn't know what do you want to achieve with it.
So, based on your last explanation, I suggest you try SetEnvironmentVariable. But it depends on how the DLL read the environment. It will work if the function use GetEnvironmentVariable API to read the environment. If it is using other technique, then you are out of luck
Try this:
--------------
Declare Long SetEnvironmentVariable in Kernel32 String cName, String cValue
Declare Long GetEnvironmentVariable in Kernel32 ;
String cName, String @cBuffer, Long nBufSize
SetEnvironmentVariable('NewEnv', 'Test')
?GetEnv('NewEnv')
cBuffer = replicate(chr(0), 255) && give enough buffer
GetEnvironmentVariable('NewEnv', @cBuffer, 32)
?cBuffer
SetEnvironmentVariable('NewEnv', Null) && Reset
--------------
-- AirCon --