MCPcopy Create free account
hub / github.com/VCVRack/Rack / runProcessDetached

Function runProcessDetached

src/system.cpp:916–934  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914
915
916void runProcessDetached(const std::string& path) {
917#if defined ARCH_WIN
918 SHELLEXECUTEINFOW shExInfo;
919 ZeroMemory(&shExInfo, sizeof(shExInfo));
920 shExInfo.cbSize = sizeof(shExInfo);
921 shExInfo.lpVerb = L"runas";
922
923 std::wstring pathW = string::UTF8toUTF16(path);
924 shExInfo.lpFile = pathW.c_str();
925 shExInfo.nShow = SW_SHOW;
926
927 if (ShellExecuteExW(&shExInfo)) {
928 // Do nothing
929 }
930#else
931 // Not implemented on Linux or Mac
932 assert(0);
933#endif
934}
935
936
937uint32_t getFpuFlags() {

Callers

nothing calls this directly

Calls 1

UTF8toUTF16Function · 0.85

Tested by

no test coverage detected