Click to See Complete Forum and Search --> : How to inform processes of environment changes
Robert Maier
May 6th, 1999, 07:42 AM
Hello,
I heard there is a function or at least a way, to notify all processes of a change of environment variables. Does someone in this forum have an idea of, how to do this?
Thanks
Robert
Lothar Haensler
May 6th, 1999, 08:57 AM
There is a WM_SETTINGCHANGE message that gets sent, whenever SystemParametersInfo changes system-wide settings.
There is also a BroadcastSystemMessage that you can use to post a message e.g. to all applications.
Paul McKenzie
May 6th, 1999, 04:56 PM
Along with the WM_SETTINGCHANGE message, there is a WM_WININICHANGE message. Also, make sure that your app respects settings changed by other apps. You're app should trap these messages too.
Regards,
Paul McKenzie
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.