Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 17425, How to set global environment variables.

by Toby Allen Email: Anonymous

Code to go with article that shows how to update global environment settings.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For Delphi, Version 4.0  to 6.0 1057 downloads
Copyright: No significant restrictions

Size: 5,523 bytes
Updated on Thu, 17 Jan 2002 05:17:42 GMT
Originally uploaded on Thu, 17 Jan 2002 05:18:52 GMT
SHA1 Hash: 71C562E6667B4AFBDDB4F561C6FEDB8D3D0D9422
MD5 Hash: 7687FB076B2C25A7D87321D019AAB133

    Explore the files in this upload

Using GetEnvironmentVariable and SetEnvironmentVariable and other related API calls you can get or set Environment Variables. However these changes only affect your own process, not others. How do you make these settings Global?

Code shows how by changing a registry setting and calling SendMessageTimeout with WM_SettingChange you can achieve this.

Written with D5 but should work with D4, D6 maybe D3

For more information, see

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC04