windows-nt/Source/XPSP1/NT/admin/cmdline/cmdevtgprov/triggerfactory.h

40 lines
1 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
//***************************************************************************
// Copyright (c) Microsoft Corporation
//
// Module Name:
// TRIGGERFACTORY.H
//
// Abstract:
// Contains CTriggerFactory definition.
//
// Author:
// Vasundhara .G
//
// Revision History:
// Vasundhara .G 9-oct-2k : Created It.
//***************************************************************************
#ifndef __TRIGGER_FACTORY
#define __TRIGGER_FACTORY
// class factory for the provider
class CTriggerFactory : public IClassFactory
{
public:
CTriggerFactory();
~CTriggerFactory();
// IUnknown interface members
STDMETHODIMP_(ULONG) AddRef( void );
STDMETHODIMP_(ULONG) Release( void );
STDMETHODIMP QueryInterface( REFIID riid, LPVOID* ppv );
// IClassFactory interface members
STDMETHODIMP CreateInstance( LPUNKNOWN pUnknownOutter, REFIID riid, LPVOID* ppvObject );
STDMETHODIMP LockServer( BOOL bLock );
protected:
DWORD m_dwCount; // holds the object reference count
};
#endif // __TRIGGER_FACTORY