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.

77 lines
1.7 KiB

  1. //*************************************************************
  2. //
  3. // Copyright (c) Microsoft Corporation 1999 - 2000
  4. // All rights reserved
  5. //
  6. // catlog.hxx
  7. //
  8. //*************************************************************
  9. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  10. //
  11. // Class: CCategoryInfo
  12. //
  13. // Synopsis: This class represents an ARP category
  14. //
  15. // Notes:
  16. //
  17. //-------------------------------------------------------------
  18. class CCategoryInfo : public CPolicyRecord
  19. {
  20. public:
  21. CCategoryInfo(APPCATEGORYINFO* pCategoryInfo);
  22. HRESULT Write();
  23. private:
  24. APPCATEGORYINFO* _pCategoryInfo; // pointer to information about this category
  25. };
  26. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  27. //
  28. // Class: CCategoryInfoLog
  29. //
  30. // Synopsis: This class logs app categories to a policy log
  31. //
  32. // Notes:
  33. //
  34. //-------------------------------------------------------------
  35. class CCategoryInfoLog : public CPolicyLog
  36. {
  37. public:
  38. CCategoryInfoLog( CRsopContext* pRsopContext,
  39. APPCATEGORYINFOLIST* pCategoryList );
  40. HRESULT AddBlankCategory(CCategoryInfo* pCategoryInfo);
  41. ~CCategoryInfoLog();
  42. HRESULT WriteLog();
  43. private:
  44. HRESULT InitCategoryLog();
  45. HRESULT GetCategoriesFromDirectory();
  46. HRESULT WriteCategories();
  47. APPCATEGORYINFOLIST _AppCategoryList; // list of categories retrieved from DS
  48. BOOL _bRsopEnabled; // TRUE if logging is enabled
  49. CRsopContext* _pRsopContext; // rsop logging context
  50. APPCATEGORYINFOLIST* _pCategoryList; // list of categories we wish to log
  51. };