MSDN is your friend...
GetEnvironmentVariable
SetEnvironmentVariable
Or use the WMI Class
Win32_Environment to enumerate them.
quote:
Originally posted by wincy
They are stored here:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
Those are not environment variables; they are special folders that you can use
SHGetFolderPath or
SHGetKnownFolderPath
These are environment variables: