Can registry settings be "watched" by a program in Windows?

2

Let me explain what I mean...

When you edit a configuration file for a service, software or process in Linux, you are generally required to restart or reload it after editing the configuration settings, in order for those configuration settings to take effect.

Is the same true in Windows, when such settings are read from the registry?

Or is it sometimes more of an event driven sort of a thing, where it watches for the settings to change before reloading them?

leeand00

Posted 2019-01-22T00:24:14.690

Reputation: 14 882

Answers

1

It really just depends how the application is written.

For example, most applications that make use of the registry to store configuration will read the registry at startup. You can however set call backs if a registry key changes which would give you a chance to re-load the configuration without the need to restart the process.

Have a search for regnotifychangekeyvalue as an example.

HelpingHand

Posted 2019-01-22T00:24:14.690

Reputation: 1 435

Wow that search is taking a while... – leeand00 – 2019-01-22T01:05:29.123

It didn't find anything...but I'm not an admin on this machine or anything like that... – leeand00 – 2019-01-22T01:09:28.050

@leeand00 - Sorry I meant for you to Google for regnotifychangekeyvalue. – HelpingHand – 2019-01-22T08:23:12.150