windows-nt/Source/XPSP1/NT/admin/wmi/wbem/winmgmt/wbemtest/notsink.h

44 lines
881 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (C) 1996-2001 Microsoft Corporation
Module Name:
NOTSINK.H
Abstract:
History:
--*/
#include <wbemidl.h>
//#include <arena.h>
//#include <flexarry.h>
#include "wbemtest.h"
#pragma warning(disable:4355)
class CNotSink : public IWbemObjectSink
{
long m_lRefCount;
CQueryResultDlg* m_pViewer;
CRITICAL_SECTION m_cs;
public:
STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR* ppvObj);
STDMETHOD_(ULONG, AddRef)(THIS);
STDMETHOD_(ULONG, Release)(THIS);
STDMETHOD(Indicate)(long lObjectCount, IWbemClassObject** pObjArray);
STDMETHOD(SetStatus)(long lFlags, long lParam, BSTR strParam,
IWbemClassObject* pObjPAram);
// Private to implementation.
// ==========================
CNotSink(CQueryResultDlg* pViewer);
~CNotSink();
void ResetViewer() { m_pViewer = NULL;}
};