#include <glib.h>
-extern gpointer CreateMutex(WapiSecurityAttributes *security, gboolean owned,
- const guchar *name);
-extern gboolean ReleaseMutex(gpointer handle);
+#include <pthread.h>
+
+G_BEGIN_DECLS
+
+extern gpointer CreateMutex (WapiSecurityAttributes *security, gboolean owned,
+ const gunichar2 *name);
+extern gboolean ReleaseMutex (gpointer handle);
+extern gpointer OpenMutex (guint32 access, gboolean inherit,
+ const gunichar2 *name);
+
+void
+wapi_mutex_abandon (gpointer data, pid_t pid, pthread_t tid);
+
+G_END_DECLS
#endif /* _WAPI_MUTEXES_H_ */