# Function Reference

# _WinAPI_ReleaseMutex

Releases ownership of the specified mutex object

#include <WinAPIProc.au3>
_WinAPI_ReleaseMutex ( $hMutex )

## Parameters

$hMutex | Handle to the mutex object. The _WinAPI_CreateMutex() or _WinAPI_OpenMutex() function returns this handle.

## Return Value

Success: | True.
Failure: | False, call _WinAPI_GetLastError() to get extended error information.

## Remarks

The _WinAPI_ReleaseMutex() function fails if the calling thread does not own the mutex object.

## Related

_WinAPI_CreateMutex, _WinAPI_OpenMutex

## See Also

Search ReleaseMutex in MSDN Library.