> ----------
From: xxxxx@muttsnuts.com[SMTP:xxxxx@muttsnuts.com]
Reply To: xxxxx@lists.osr.com
Sent: Friday, November 01, 2002 11:48 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: I’d like to apply new registry setting without
rebooting.Not quite sure what you’re asking here, but if the question is how can an
application dynamically react to a change in registry parameters without
restarting the app then the way I usually do it is to use
RegQueryInfoKey()
to retrieve the FILETIME struct and use this as the base value. Then I
kick off a thread that wakes up periodically and checks to see if the
FILETIME has changed. If it has, then I read and apply the new registry
parameters.
Why not use RegNotifyChangeKeyValue instead?
Best regards,
Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]