mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-29 20:28:25 -05:00
14 lines
238 B
C
14 lines
238 B
C
|
#include <stdlib.h>
|
||
|
|
||
|
#include <windows.h>
|
||
|
|
||
|
const char *
|
||
|
getprogname(void)
|
||
|
{
|
||
|
static char progname[MAX_PATH + 1];
|
||
|
DWORD length = GetModuleFileName(NULL, progname, sizeof (progname) - 1);
|
||
|
if (length < 0)
|
||
|
return "?";
|
||
|
return progname;
|
||
|
}
|