diff options
Diffstat (limited to 'Common/NightSecApp.h')
-rw-r--r-- | Common/NightSecApp.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Common/NightSecApp.h b/Common/NightSecApp.h new file mode 100644 index 0000000..80e9fae --- /dev/null +++ b/Common/NightSecApp.h @@ -0,0 +1,41 @@ +// NightSecApp.h: interface for the CNightSecApp class. +// +////////////////////////////////////////////////////////////////////// + +#if !defined(AFX_NIGHTSECAPP_H__19178A44_7FDB_11D3_BF9E_0020182B97FC__INCLUDED_) +#define AFX_NIGHTSECAPP_H__19178A44_7FDB_11D3_BF9E_0020182B97FC__INCLUDED_ + +#if _MSC_VER > 1000 +#pragma once +#endif // _MSC_VER > 1000 + +#include <mystring.h> +#include <RegSettings.h> +#include "../common/oneinstance.h" + +class CNightSecApp : public CComModule +{ +public: + CNightSecApp(const string& sAppName, const string& sMtxName = _T("")); + ~CNightSecApp(); + virtual bool InitInstance(); + virtual bool ExitInstance(); + HRESULT RegisterDlls(bool bUI = true); + + // From ATL +// LONG Unlock(); +// DWORD dwThreadID; +// HANDLE hEventShutdown; +// void MonitorShutdown(); +// bool StartMonitor(); + bool bActivity; + +protected: + const string m_sAppName; + COneInstance m_oneInstance; + +public: + CRegSettings m_settings; +}; + +#endif // !defined(AFX_NIGHTSECAPP_H__19178A44_7FDB_11D3_BF9E_0020182B97FC__INCLUDED_) |