mirror of https://github.com/tongzx/nt5src
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.
53 lines
654 B
53 lines
654 B
/*++
|
|
|
|
Copyright (C) 1997-2001 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
NODE.H
|
|
|
|
Abstract:
|
|
|
|
Declares the CNode class
|
|
|
|
History:
|
|
|
|
a-davj 1-July-97 Created.
|
|
|
|
--*/
|
|
|
|
#ifndef _Node_H_
|
|
#define _Node_H_
|
|
|
|
#include <wbemcomn.h>
|
|
|
|
|
|
class CValue
|
|
{
|
|
public:
|
|
CValue(TCHAR * pName, DWORD dwType, DWORD dwDataSize, BYTE * pData);
|
|
~CValue();
|
|
private:
|
|
TCHAR * m_pName;
|
|
DWORD m_dwType;
|
|
DWORD m_dwDataSize;
|
|
BYTE * m_pData;
|
|
};
|
|
|
|
class CNode
|
|
{
|
|
public:
|
|
CNode();
|
|
~CNode();
|
|
DWORD AddSubNode(CNode * pAdd);
|
|
DWORD AddValue(CValue *);
|
|
DWORD CompareAndReportDiffs(CNode * pComp);
|
|
private:
|
|
|
|
CFlexArray m_SubNodes;
|
|
CFlexArray m_Values;
|
|
};
|
|
|
|
|
|
|
|
#endif
|