MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / open_folder

Method open_folder

core/src/utils/shell.cc:21–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected