| 305 | } |
| 306 | |
| 307 | std::wstring WinSys::Process::GetCurrentDirectory() const { |
| 308 | wil::unique_handle h; |
| 309 | if (!::DuplicateHandle(::GetCurrentProcess(), _handle.get(), ::GetCurrentProcess(), h.addressof(), |
| 310 | PROCESS_VM_READ | PROCESS_QUERY_INFORMATION, FALSE, 0)) |
| 311 | return L""; |
| 312 | return GetCurrentDirectory(h.get()); |
| 313 | } |
| 314 | |
| 315 | std::wstring Process::GetCurrentDirectory(HANDLE hProcess) { |
| 316 | std::wstring path; |
nothing calls this directly
no test coverage detected