Here is my code:
TCHAR szProcessName[MAX_PATH] = TEXT("<unknown>");
GetModuleFileNameEx (hProcess, NULL, szProcessName,
sizeof(szProcessName)/sizeof(TCHAR));
I need the path in char*
, and not in TCHAR[]
. Is it somehow possible without converting (WideCharToMultiByte)
?
Thanks...