Topic: OpenMutex in Windows 7 vs 10
Long picked and, like, solved a question. But a crutch. It would be desirable to understand how now to live we Have the process starting as admin and doing the following: mutex = CreateMutex (NULL, TRUE, name);//some processing ReleaseMutex (mutex); And the process starting after first all the same as (the normal user or as admin): mutex = OpenMutex (SYNCHRONIZE | MUTANT_QUERY_STATE, FALSE, name);//... DWORD res = WaitForSingleObject (mutex, INFINITE);//... ReleaseMutex (mutex) All works perfectly in Windows 10, 7 (at itself checked). But suddenly users with problems in 7 started to appear. Clarified that in the second process Wait it is hung up forever. That is, mutex it is opened, errors are not present, but it we can not. The crutch looks so://if Windows 7 mutex = CreateMutex (NULL, FALSE, name); I somewhere not so made something or what?