WindowsApi:GetModuleFileName
lastmod 2018-08-17created 2016-03-313 edits
Gets the full path (Path) of the currently running module (exe file).
How to use
char path[MAX_PATH];
GetModuleFileName(GetModuleHandle(NULL), path, MAX_PATH);
MessageBox(NULL, path, NULL, NULL);