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.
 
 
 
 
 
 

119 lines
2.9 KiB

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2000 - 2001.
//
// File: headers.hxx
//
// Contents: Contains class definition for Snapin's Root Node
//
// History: 07-26-2001 Hiteshr Created
//
//----------------------------------------------------------------------------
//Values for ADSTATE
#define AD_STATE_UNKNOWN 0
#define AD_NOT_AVAILABLE 1
#define AD_AVAILABLE 2
class CRoleRootData : public CRootData
{
public:
CRoleRootData(CComponentDataObject* pComponentData);
virtual ~CRoleRootData();
BOOL
IsDeveloperMode(){return m_bDeveloperMode;}
const CString&
GetXMLStorePath();
void
SetXMLStorePath(const CString& strXMLStorePath);
//
// node info
//
DECLARE_NODE_GUID()
virtual HRESULT OnCommand(long nCommandID,
DATA_OBJECT_TYPES type,
CComponentDataObject* pComponentData,
CNodeList* pNodeList);
//
//Cannot Delete Root Node
//
virtual void OnDelete(CComponentDataObject*,
CNodeList*){ ASSERT(FALSE);}
virtual BOOL OnRefresh(CComponentDataObject* pComponentData,
CNodeList* pNodeList);
virtual BOOL OnSetRefreshVerbState(DATA_OBJECT_TYPES type,
BOOL* pbHide,
CNodeList* pNodeList);
virtual int GetImageIndex(BOOL) { return iIconRoleSnapin;}
//
// Filtering
//
BOOL IsAdvancedView() { return m_bAdvancedView; }
virtual BOOL OnEnumerate(CComponentDataObject* pComponentData,
BOOL bAsync = TRUE);
//
// IStream manipulation helpers overrides
//
virtual HRESULT IsDirty();
virtual HRESULT Load(IStream* pStm);
virtual HRESULT Save(IStream* pStm, BOOL fClearDirty);
virtual CColumnSet* GetColumnSet();
virtual LPCWSTR GetColumnID() { return GetColumnSet()->GetColumnID(); }
HRESULT GetResultViewType(CComponentDataObject* pComponentData,
LPOLESTR *ppViewType,
long *pViewOptions);
HRESULT OnShow(LPCONSOLE lpConsole);
virtual BOOL CanExpandSync() { return TRUE; }
virtual BOOL HasPropertyPages(DATA_OBJECT_TYPES,
BOOL* pbHideVerb,
CNodeList*);
DWORD
GetADState();
CADInfo& GetAdInfo(){return m_ADInfo;};
// DECLARE_TOOLBAR_MAP()
protected:
virtual BOOL CanCloseSheets();
virtual LPCONTEXTMENUITEM2 OnGetContextMenuItemTable();
virtual BOOL OnAddMenuItem(LPCONTEXTMENUITEM2 pContextMenuItem2,
long *pInsertionAllowed);
private:
void OnOpenPolicyStore(BOOL bNew);
void OnOptions();
BOOL m_bAdvancedView; // view option toggle
BOOL m_bDeveloperMode;
CString m_strXMLStoreDirectory;
DWORD m_dwADState;
CADInfo m_ADInfo;
private:
CColumnSet* m_pColumnSet;
};