| 19 | } |
| 20 | |
| 21 | void shell::open_folder(const path &path) |
| 22 | { |
| 23 | static decltype(&ShellExecuteW) pShellExecuteW = nullptr; |
| 24 | |
| 25 | if (!pShellExecuteW) { |
| 26 | HMODULE shell32 = LoadLibraryA("shell32.dll"); |
| 27 | (LPVOID &)pShellExecuteW = GetProcAddress(shell32, "ShellExecuteW"); |
| 28 | } |
| 29 | |
| 30 | if (pShellExecuteW) |
| 31 | pShellExecuteW(NULL, L"open", path.c_str(), NULL, NULL, SW_SHOWNORMAL); |
| 32 | } |
| 33 | |
| 34 | #elif OS_MAC |
| 35 |
nothing calls this directly
no outgoing calls
no test coverage detected