mickeydog
asked on
API for Windows Environment
is there an API for modifying windows environment variables
(e.g. classpath)
(e.g. classpath)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yes (NT is easier than 9x ;-). Simply add a value to 'HKEY_CURRENT_USER\Environ ment' supplying the variable's name as the value name. If you want to set the value for all users, you should add this value to 'HKEY_USERS\<some SID to be replaced>\Environment'
ASKER
ok, thanks!
ASKER
i wanted to set it when installing my software.
so it would seem that i would want them to persist.
this would be in windows NT.
do you know how this is accomplished?