96 lines
2 KiB
C
96 lines
2 KiB
C
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Copyright (c) 1999 Microsoft Corporation
|
||
|
//
|
||
|
// Module Name:
|
||
|
// dnsdomain.h
|
||
|
//
|
||
|
// Implementation File:
|
||
|
// dnscache.cpp
|
||
|
//
|
||
|
// Description:
|
||
|
// Definition of the CDnsDomain class.
|
||
|
//
|
||
|
// Author:
|
||
|
// Henry Wang (Henrywa) March 8, 2000
|
||
|
//
|
||
|
// Notes:
|
||
|
//
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
#pragma once
|
||
|
|
||
|
#include "dnsbase.h"
|
||
|
|
||
|
class CObjPath;
|
||
|
class CDnsRpcNode;
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
//++
|
||
|
//
|
||
|
// class CDnsDomain
|
||
|
//
|
||
|
// Description:
|
||
|
// class defination for dns domain
|
||
|
//
|
||
|
//
|
||
|
// Inheritance:
|
||
|
//
|
||
|
//
|
||
|
//--
|
||
|
/////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
class CDnsDomain : public CDnsBase
|
||
|
{
|
||
|
public:
|
||
|
CDnsDomain();
|
||
|
~CDnsDomain();
|
||
|
CDnsDomain(
|
||
|
const WCHAR*,
|
||
|
CWbemServices*
|
||
|
);
|
||
|
SCODE EnumInstance(
|
||
|
long lFlags,
|
||
|
IWbemContext * pCtx,
|
||
|
IWbemObjectSink * pHandler);
|
||
|
SCODE GetObject(
|
||
|
CObjPath & ObjectPath,
|
||
|
long lFlags,
|
||
|
IWbemContext * pCtx,
|
||
|
IWbemObjectSink * pHandler
|
||
|
);
|
||
|
|
||
|
SCODE ExecuteMethod(
|
||
|
CObjPath & objPath,
|
||
|
WCHAR * wzMethodName,
|
||
|
long lFlag,
|
||
|
IWbemClassObject * pInArgs,
|
||
|
IWbemObjectSink * pHandler
|
||
|
) ;
|
||
|
|
||
|
SCODE PutInstance(
|
||
|
IWbemClassObject * pInst ,
|
||
|
long lFlags,
|
||
|
IWbemContext* pCtx ,
|
||
|
IWbemObjectSink * pHandler
|
||
|
);
|
||
|
SCODE DeleteInstance(
|
||
|
CObjPath & ObjectPath,
|
||
|
long lFlags,
|
||
|
IWbemContext * pCtx,
|
||
|
IWbemObjectSink * pHandler
|
||
|
);
|
||
|
|
||
|
static CDnsBase* CreateThis(
|
||
|
const WCHAR * wszName, //class name
|
||
|
CWbemServices * pNamespace, //namespace
|
||
|
const char * szType //str type id
|
||
|
);
|
||
|
static SCODE InstanceFilter(
|
||
|
CDomainNode & ParentDomain,
|
||
|
PVOID pFilter,
|
||
|
CDnsRpcNode * pNode,
|
||
|
IWbemClassObject * pClass,
|
||
|
CWbemInstanceMgr & InstMgr
|
||
|
);
|
||
|
};
|
||
|
|