Exemplo n.º 1
0
        public static OpenExistingResult OpenNamedMutex(string name, out SafeWaitHandle?result)
        {
            OpenExistingResult status = WaitableObject.OpenNamedMutex(name, out WaitableObject? mutex);

            result = status == OpenExistingResult.Success ? NewHandle(mutex !) : null;
            return(status);
        }