/***************************************************************************
                             Mutex.h
                             -------------------
    Begin                : Thu Oct 26, 2001
    Objective            : Basic Object Synchronization Class
    Author               : Drew Hall
    Email                : dhall@Zero-Soft.com
 ***************************************************************************/

#ifndef __MUTEX_H__
#define __MUTEX_H__

class CMutex
{
public:
   CMutex(const TCHAR* szName, bool bLockMutex) throw(CException);
   ~CMutex();

   bool AcquireMutex();
   bool ReleaseMutex();

private:
   TCHAR* m_szMutexName;
   HANDLE m_hMutex;

};

#endif
