Leaked source code of windows server 2003
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.
 
 
 
 
 
 

57 lines
1.1 KiB

/*++
Copyright (c) Microsoft Corporation
Module Name:
TRIGGERCONSUMER.H
Abstract:
Contains CTriggerConsumer definition.
Author:
Vasundhara .G
Revision History:
Vasundhara .G 9-oct-2k : Created It.
--*/
#ifndef __TRIGGER_CONSUMER_H
#define __TRIGGER_CONSUMER_H
// event consumer class
class CTriggerConsumer : public IWbemUnboundObjectSink
{
private:
DWORD m_dwCount; // holds the object reference count
ITaskScheduler* GetTaskScheduler();
public:
CTriggerConsumer();
~CTriggerConsumer();
// IUnknown members
STDMETHODIMP_(ULONG)
AddRef(
void
);
STDMETHODIMP_(ULONG)
Release(
void
);
STDMETHODIMP
QueryInterface(
IN REFIID riid,
OUT LPVOID* ppv
);
// This routine ultimately receives the event.
STDMETHOD
(IndicateToConsumer)(
IN IWbemClassObject* pLogicalConsumer,
IN LONG lNumObjects,
IN IWbemClassObject** ppObjects
);
};
#endif // __TRIGGER_CONSUMER_H