MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ExplorePath

Function ExplorePath

IntelPresentMon/CommonUtilities/win/Utilities.cpp:187–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 void ExplorePath(const std::filesystem::path& path)
188 {
189 const auto result = (INT_PTR)ShellExecuteW(nullptr, L"open", path.c_str(), nullptr, nullptr, SW_SHOWDEFAULT);
190 if (result <= 32) {
191 throw Except<HrError>(ShellExecuteCodeToHr_(result), "failed to open file system path in shell");
192 }
193 }
194}

Callers 3

WinMainFunction · 0.85
ExecuteOnRendererMethod · 0.85
ExecuteOnRendererMethod · 0.85

Calls 1

ShellExecuteCodeToHr_Function · 0.85

Tested by

no test coverage detected