| 914 | |
| 915 | |
| 916 | void 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 | |
| 937 | uint32_t getFpuFlags() { |
nothing calls this directly
no test coverage detected