title: How to tell which value triggered RegNotifyChangeKeyValue?
body: <p>I am using <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/ms724892.aspx" rel="nofollow">RegNotifyChangeKeyValue</a> API to track changes to my registry key and the C++ example similar to the one given at the bottom of that MSDN page. I set this API as such:</p>
  
  <pre><code>RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"Software\\Company\\Product", 0, KEY_NOTIFY, &amp;hKey);
  RegNotifyChangeKeyValue(hKey, FALSE, REG_NOTIFY_CHANGE_LAST_SET, hEvent, TRUE);
  </code></pre>
  
  <p>So, say, when the event that this API takes as a parameters is signaled (which means a change to the <code>Software\Company\Product</code> key) is there any way to find out which value actually triggered it?</p>