#include #include const char * getprogname(void) { static char buf[512]; GetProgramName(buf, 512); return buf; }