Get changed environment variable?

Windows specific forum
oO0XX0Oo
User
User
Posts: 78
Joined: Thu Aug 10, 2017 7:35 am

Get changed environment variable?

Post by oO0XX0Oo »

Hi,

I can listen to Window Messages by using a callback like:

Code: Select all

SetWindowCallback(@ReceiveWM(), #Windows_Main)
and in that procedure I look for #WM_SETTINGCHANGE messages

This works fine but the problem is, when a broadcast is send, e.g. after going
into the Windows environment variables dialog and changing the test variable
there + exiting that dialog with OK, my test app still can't see that change when
using:

Code: Select all

Debug "Content of env var [abc]: " + GetEnvironmentVariable("abc")
Is anything else required to see the content of the changed environment variable?