Source code of Windows XP (NT5)
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.
|
|
/*++
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;} };
|