environment strings:
FreeEnvironmentStrings
GetSystemInfo
One more way to retrieve environment strings
Reading and setting Environment variables
Storing the environment strings in cursor