-------------------------------------------------------------------------
| 109 | |
| 110 | //------------------------------------------------------------------------- |
| 111 | std::wstring GetFinalPathName(HANDLE hfile) |
| 112 | { |
| 113 | std::vector<wchar_t> buffer(PathBufferSize); |
| 114 | |
| 115 | if (GetFinalPathNameByHandle(hfile, &buffer[0], static_cast<int>(buffer.size()) - 1, VOLUME_NAME_NT)) |
| 116 | return &buffer[0]; |
| 117 | |
| 118 | return GetMappedFileNameStr(hfile); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | //------------------------------------------------------------------------- |
no test coverage detected