CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    27

    How to inform processes of environment changes

    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


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: How to inform processes of environment changes

    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.


  3. #3
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How to inform processes of environment changes

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured