I would like to know how to (programmically) notify Windows Explorer that I have changed the location of folders such as My Documents, My Pictures, etc. I've tried the following:
lRetVal = SendMessageTimeout(
HWND_BROADCAST,
WM_SETTINGCHANGE,
0,
(LPARAM) "Environment",
SMTO_ABORTIFHUNG,
5000,
&dwResult);
but this does not seem to notify Windows Explorer - maybe only for Environment variables? TweakUI does something similar (where you can modify the folder locations) and its able to notify Windows Explorer. I also don't want to have to kill explorer.exe and restart it to apply the changes... I need something in code.
Any help is appreciated.
lRetVal = SendMessageTimeout(
HWND_BROADCAST,
WM_SETTINGCHANGE,
0,
(LPARAM) "Environment",
SMTO_ABORTIFHUNG,
5000,
&dwResult);
but this does not seem to notify Windows Explorer - maybe only for Environment variables? TweakUI does something similar (where you can modify the folder locations) and its able to notify Windows Explorer. I also don't want to have to kill explorer.exe and restart it to apply the changes... I need something in code.
Any help is appreciated.