| 276 | } |
| 277 | |
| 278 | std::wstring GetFileSystemPathFromFileDialog( |
| 279 | _In_ IFileDialog* Object) |
| 280 | { |
| 281 | std::wstring Path; |
| 282 | if (Object) |
| 283 | { |
| 284 | IShellItem* ShellItem = nullptr; |
| 285 | if (SUCCEEDED(Object->GetResult(&ShellItem))) |
| 286 | { |
| 287 | Path = GetDisplayNameFromShellItem(ShellItem, SIGDN_FILESYSPATH); |
| 288 | ShellItem->Release(); |
| 289 | } |
| 290 | } |
| 291 | return Path; |
| 292 | } |
| 293 | |
| 294 | void SetForegroundWindowSimple( |
| 295 | _In_ HWND WindowHandle) |
no test coverage detected