diff options
Diffstat (limited to 'src/lib/cross_windows.cc')
| -rw-r--r-- | src/lib/cross_windows.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/cross_windows.cc b/src/lib/cross_windows.cc index ac92aa7eb..f778a60e1 100644 --- a/src/lib/cross_windows.cc +++ b/src/lib/cross_windows.cc @@ -694,3 +694,13 @@ dcpomatic::get_process_id () return dcp::raw_convert<string>(GetCurrentProcessId()); } + +bool +show_in_file_manager (boost::filesystem::path, boost::filesystem::path select) +{ + std::wstringstream args; + args << "/select," << select; + auto const r = ShellExecute (0, L"open", L"explorer.exe", args.str().c_str(), 0, SW_SHOWDEFAULT); + return (reinterpret_cast<int64_t>(r) <= 32); +} + |
