PROCESS_INFORMATION ProcessInfo;
CreateProcess((LPTSTR)str.GetString(), NULL, NULL, NULL, FALSE, CREATE_NO_WINDOW, NULL, NULL, &startupInfo, &ProcessInfo); 加锁
WaitForSingleObject(ProcessInfo.hProcess, INFINITE); 解锁
sciter::value MainFrame::OngetHaveRunshow() 加锁
{
HANDLE hMutex = ::CreateMutex(NULL, TRUE, L"sYsteMnannY_rUn_fLag-2019_11_11-1710");
if (GetLastError() == ERROR_ALREADY_EXISTS) //程序已经运行
{
return 1;
}
return 0;
}