windows-nt/Source/XPSP1/NT/ds/dns/server/wmi/source/dnscache.h
2020-09-26 16:20:57 +08:00

88 lines
1.8 KiB
C++

/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999 Microsoft Corporation
//
// Module Name:
// dnscache.h
//
// Implementation File:
// dnscache.cpp
//
// Description:
// Definition of the CDnscache class.
//
// Author:
// Henry Wang (Henrywa) March 8, 2000
//
// Notes:
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
#include "dnsbase.h"
class CObjPath;
/////////////////////////////////////////////////////////////////////////////
//++
//
// class CDnsCache
//
// Description:
// class defination for dns cache
//
//
// Inheritance:
//
//
//--
/////////////////////////////////////////////////////////////////////////////
class CDnsCache : CDnsBase
{
public:
CDnsCache();
CDnsCache(
const WCHAR*,
CWbemServices*);
~CDnsCache();
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 * pResponseHandler
);
static CDnsBase* CreateThis(
const WCHAR * wszName, //class name
CWbemServices * pNamespace, //namespace
const char * szType //str type id
);
};