I’ve been trying to adjust the example of uisng RegNotifyChangeKeyValue() given herefor my particular case — i.e. tracking changes done to a value within a registry key, but the event used in the example fires only once right after the app starts.
So I was wondering, can I track changes done to values of a Registry key like that?
Well, on that page from MSDN you mentioned, you can find that using
REG_NOTIFY_CHANGE_LAST_SETas a filter does the following:Further down it says:
You need to call
RegNotifyChangeKeyValuein a loop in order to catch further changes.