| 64 | } |
| 65 | |
| 66 | CString ProcessHelper::GetProcessImageName() { |
| 67 | static CString path; |
| 68 | if (path.IsEmpty()) { |
| 69 | ::GetModuleFileName(nullptr, path.GetBufferSetLength(MAX_PATH), MAX_PATH); |
| 70 | path.FreeExtra(); |
| 71 | } |
| 72 | return path; |
| 73 | } |
| 74 | |
| 75 | bool ProcessHelper::IsInstanceRunning() { |
| 76 | static HANDLE hMutex = nullptr; |
no test coverage detected