SecurityManager.h 1009 B

123456789101112131415161718192021222324252627282930313233
  1. // SecurityManager.h: interface for the CSecurityManager class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_SECURITYMANAGER_H__1236B96A_01BF_4866_9297_2A1D4B38C9D2__INCLUDED_)
  5. #define AFX_SECURITYMANAGER_H__1236B96A_01BF_4866_9297_2A1D4B38C9D2__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. class CSecurityManager
  10. {
  11. public:
  12. BOOL IsIPAddressBlocked(LPCTSTR lpszIPAddress);
  13. BOOL IsIPAddressNonBlocked(LPCTSTR lpszIPAddress);
  14. void UpdateBlockedList(CStringArray &strArray);
  15. void UpdateNonBlockedList(CStringArray &strArray);
  16. void GetNonBlockedList(CStringArray &strArray);
  17. void GetBlockedList(CStringArray &strArray);
  18. CSecurityManager();
  19. virtual ~CSecurityManager();
  20. BOOL Serialize(BOOL bStoring);
  21. protected:
  22. CStringArray m_NonBlockedList;
  23. CStringArray m_BlockedList;
  24. CString m_strFilename;
  25. CCriticalSection m_CriticalSection;
  26. };
  27. #endif // !defined(AFX_SECURITYMANAGER_H__1236B96A_01BF_4866_9297_2A1D4B38C9D2__INCLUDED_)