MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / RunOnce

Method RunOnce

source/src/tools/process.h:25–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 static std::wstring exeName() { return Path::GetFile(exePath()); }
24 static bool isRunning(LPCWSTR mutexName) { HANDLE handle = CreateMutexW(0, 0, mutexName); if (GetLastError() == ERROR_ALREADY_EXISTS) { CloseHandle(handle); return true; } CloseHandle(handle); return false; }
25 static void RunOnce(LPCWSTR mutexName) { HANDLE handle = CreateMutexW(0, 0, mutexName); if (GetLastError() == ERROR_ALREADY_EXISTS) { CloseHandle(handle); exit(0); } }
26 static bool open(const std::wstring& url)
27 {
28 if (url.empty()) return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected