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
77 lines
1.7 KiB
//*************************************************************
|
|
//
|
|
// Copyright (c) Microsoft Corporation 1999 - 2000
|
|
// All rights reserved
|
|
//
|
|
// catlog.hxx
|
|
//
|
|
//*************************************************************
|
|
|
|
|
|
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
//
|
|
// Class: CCategoryInfo
|
|
//
|
|
// Synopsis: This class represents an ARP category
|
|
//
|
|
// Notes:
|
|
//
|
|
//-------------------------------------------------------------
|
|
class CCategoryInfo : public CPolicyRecord
|
|
{
|
|
public:
|
|
|
|
CCategoryInfo(APPCATEGORYINFO* pCategoryInfo);
|
|
|
|
HRESULT Write();
|
|
|
|
private:
|
|
|
|
APPCATEGORYINFO* _pCategoryInfo; // pointer to information about this category
|
|
};
|
|
|
|
|
|
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
|
//
|
|
// Class: CCategoryInfoLog
|
|
//
|
|
// Synopsis: This class logs app categories to a policy log
|
|
//
|
|
// Notes:
|
|
//
|
|
//-------------------------------------------------------------
|
|
class CCategoryInfoLog : public CPolicyLog
|
|
{
|
|
public:
|
|
|
|
CCategoryInfoLog( CRsopContext* pRsopContext,
|
|
APPCATEGORYINFOLIST* pCategoryList );
|
|
|
|
HRESULT AddBlankCategory(CCategoryInfo* pCategoryInfo);
|
|
|
|
~CCategoryInfoLog();
|
|
|
|
HRESULT WriteLog();
|
|
|
|
private:
|
|
|
|
HRESULT InitCategoryLog();
|
|
HRESULT GetCategoriesFromDirectory();
|
|
HRESULT WriteCategories();
|
|
|
|
APPCATEGORYINFOLIST _AppCategoryList; // list of categories retrieved from DS
|
|
BOOL _bRsopEnabled; // TRUE if logging is enabled
|
|
CRsopContext* _pRsopContext; // rsop logging context
|
|
APPCATEGORYINFOLIST* _pCategoryList; // list of categories we wish to log
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|