1 /*****************************************************************************
5 *****************************************************************************/
20 // NT only code begin ... Win9x disregards this part
21 SECURITY_ATTRIBUTES MutexAttribs
;
23 memset (&MutexAttribs
, 0, sizeof (SECURITY_ATTRIBUTES
));
25 MutexAttribs
.bInheritHandle
= false;
26 MutexAttribs
.nLength
= sizeof (SECURITY_ATTRIBUTES
);
27 MutexAttribs
.lpSecurityDescriptor
= NULL
;
32 MutexHandle
= CreateMutex (&MutexAttribs
, Locked
, NULL
);
40 CloseHandle (MutexHandle
);
46 WaitForSingleObject (MutexHandle
, INFINITE
);
61 ReleaseMutex (MutexHandle
);