title: How to use current Drive name in WritePrivateProfileString()
body: <p>How would i find the current drive name where my executable file is running?</p>
  
  <p>I want to use WritePrivateProfileString() for saving a string in .ini file. I want to make the file name to be generic, as the hardcoding the full path or drive name is not a good idea.</p>
  
  <p>Can anyone please tell me how to retrieve the current drive name to use in this API.</p>
  
  <p>I am using this API something like this:-</p>
  
  <pre><code>WritePrivateProfileString(_T("device"), _T("i2c_address"), temp, _T("D:\log.ini"));
  </code></pre>
  
  <p>I don't want to hardcode D over here please let me know how can I make this generic.</p>