johna
8/30/2002 6:43:00 PM
"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message
news:#N7ust0TCHA.3740@tkmsftngp08...
> See the Microsoft.Win32.SystemEvents class and specificly its
UserPreferenceChanged event.
I had seen this already. There were a couple of things I didn't quite
understand:
1) How do I raise the event? I didn't see a method or mechanism for doing
that.
2) I assume the category is UserPreferenceCategory.General since none of the
others seem to fit. The WM_SETTINGSCHANGED has a parameter where a string
can be used for indicating that the enivronment variables have changed. I
need cmd.exe to recognize the change, it might respond only to
"Environment" and nothing else.