Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.2 KiB

  1. //+-------------------------------------------------------------------
  2. //
  3. // File: excladdr.hxx
  4. //
  5. // Contents: Defines classes for managing the current address
  6. // exclusion list
  7. //
  8. // Classes: CAddrExclusionMgr
  9. //
  10. // History: 09-Oct-00 jsimmons Created
  11. //
  12. //--------------------------------------------------------------------
  13. #pragma once
  14. class CAddrExclusionMgr
  15. {
  16. public:
  17. CAddrExclusionMgr();
  18. HRESULT EnableDisableDynamicTracking(BOOL fEnable);
  19. HRESULT GetExclusionList(DWORD* pdwNumStrings,
  20. LPWSTR** pppszStrings);
  21. HRESULT SetExclusionList(DWORD pdwNumStrings,
  22. LPWSTR* ppszStrings);
  23. HRESULT BuildExclusionDSA(DUALSTRINGARRAY* pdsaFull,
  24. DUALSTRINGARRAY** ppdsaOut);
  25. void InitializeFromRegistry();
  26. private:
  27. void FreeCurrentBuffers();
  28. BOOL IsExcludedAddress(LPWSTR pszAddress);
  29. DWORD _dwNumStrings;
  30. LPWSTR* _ppszStrings;
  31. BOOL _bInitRegistry;
  32. };
  33. // References the single instance of this object
  34. extern CAddrExclusionMgr gAddrExclusionMgr;