16,548
社区成员




{
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;
}