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.
94 lines
2.2 KiB
94 lines
2.2 KiB
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 1999 Microsoft Corporation
|
|
//
|
|
// Module Name:
|
|
// InstanceProv.h
|
|
//
|
|
// Implementation File:
|
|
// InstanceProv.cpp
|
|
//
|
|
// Description:
|
|
// Definition of the CInstanceProv.
|
|
//
|
|
// Author:
|
|
// Henry Wang (Henrywa) March 8, 2000
|
|
//
|
|
// Notes:
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
#pragma once
|
|
|
|
#include <wbemprov.h>
|
|
#include "ntrkcomm.h"
|
|
class CWbemClassObject;
|
|
|
|
class CInstanceProv : public CImpersonatedProvider
|
|
{
|
|
protected:
|
|
SCODE SetExtendedStatus(
|
|
const char* ,
|
|
CWbemClassObject& );
|
|
|
|
public:
|
|
CInstanceProv(
|
|
BSTR =NULL,
|
|
BSTR =NULL ,
|
|
BSTR =NULL,
|
|
IWbemContext * = NULL
|
|
);
|
|
virtual ~CInstanceProv();
|
|
|
|
HRESULT STDMETHODCALLTYPE DoGetObjectAsync(
|
|
BSTR ObjectPath,
|
|
long lFlags,
|
|
IWbemContext * pCtx,
|
|
IWbemObjectSink * pHandler
|
|
);
|
|
|
|
HRESULT STDMETHODCALLTYPE DoPutInstanceAsync(
|
|
IWbemClassObject * pInst,
|
|
long lFlags,
|
|
IWbemContext * pCtx,
|
|
IWbemObjectSink * pHandler
|
|
) ;
|
|
|
|
HRESULT STDMETHODCALLTYPE DoDeleteInstanceAsync(
|
|
BSTR ObjectPath,
|
|
long lFlags,
|
|
IWbemContext * pCtx,
|
|
IWbemObjectSink * pHandler
|
|
) ;
|
|
|
|
HRESULT STDMETHODCALLTYPE DoCreateInstanceEnumAsync(
|
|
BSTR RefStr,
|
|
long lFlags,
|
|
IWbemContext *pCtx,
|
|
IWbemObjectSink *pHandler
|
|
);
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE DoExecQueryAsync(
|
|
BSTR QueryLanguage,
|
|
BSTR Query,
|
|
long lFlags,
|
|
IWbemContext *pCtx,
|
|
IWbemObjectSink *pHandler
|
|
) ;
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE DoExecMethodAsync(
|
|
BSTR strObjectPath,
|
|
BSTR strMethodName,
|
|
long lFlags,
|
|
IWbemContext *pCtx,
|
|
IWbemClassObject *pInParams,
|
|
IWbemObjectSink *pHandler
|
|
);
|
|
|
|
|
|
};
|
|
|
|
extern long g_cObj;
|
|
extern long g_cLock;
|
|
|