title: Reading a key and getting the section from .ini file in c++/MFC
body: <p>I have an .ini file with sections like:</p>
  
  <pre><code>[Hai1]
  Value1 = 1
  Value2 = 2
  
  [Hai2]
  Value1 = 3
  Value2 = 4
  </code></pre>
  
  <p>Now, I need to search for a particular key like "value1 = 3" and have to get the corresponding section to which it belongs, in this case "Hai2".To use GetPrivateProfileString we need the section first. But in my case I need to get a particular section based on the Key value.Any thoughts on how to do this?</p>