16,551
社区成员
发帖
与我相关
我的任务
分享 {
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, GetCurrentProcessId());
CString strPath;
GetModuleFileNameEx(hProcess, NULL, strPath.GetBuffer(MAX_PATH), MAX_PATH);
strPath.ReleaseBuffer();
strPath = strPath.Left(strPath.ReverseFind('\\'));
CloseHandle(hProcess);
return strPath;
}