If the mutex is a named mutex and the object existed before this function call, the return value is a handle to the existing object, GetLastError returns ERROR_ALREADY_EXISTS

--
Best regards,
Alex Ionescu

On 17-Sep-07, at 10:41 PM, silverblade@svn.reactos.org wrote:

+    device_list_mutex = CreateMutex(NULL, FALSE, DEVICE_LIST_MUTEX_NAME);
+
+    if ( ! device_list_mutex)
+    {