| 137 | } |
| 138 | |
| 139 | std::wstring GetCurrentProcessModulePath() |
| 140 | { |
| 141 | // 32767 is the maximum path length without the terminating null character. |
| 142 | std::wstring Path(32767, L'\0'); |
| 143 | Path.resize(::GetModuleFileNameW( |
| 144 | nullptr, &Path[0], static_cast<DWORD>(Path.size()))); |
| 145 | return Path; |
| 146 | } |
| 147 | |
| 148 | std::wstring GetWorkingDirectory() |
| 149 | { |