title: What happened to _pgmptr?
body: <p>I have always used <code>_pgmptr</code>, which was a <code>char*</code> provided by Windows that gave the exact full path of the executable. However, after recently updating MinGW it seems to be defined to NULL instead. Is there any other way to get the full executable path, with out without its name (like instead of <code>C:\program.exe</code> just <code>C:\</code> would be okay for what I'm doing)?</p>
  
  <p>I'm fine with a platform-independent way or Windows-specific way, as long as it is reliable.</p>