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.

39 lines
1.0 KiB

  1. //***************************************************************************
  2. // Copyright (c) Microsoft Corporation
  3. //
  4. // Module Name:
  5. // TRIGGERFACTORY.H
  6. //
  7. // Abstract:
  8. // Contains CTriggerFactory definition.
  9. //
  10. // Author:
  11. // Vasundhara .G
  12. //
  13. // Revision History:
  14. // Vasundhara .G 9-oct-2k : Created It.
  15. //***************************************************************************
  16. #ifndef __TRIGGER_FACTORY
  17. #define __TRIGGER_FACTORY
  18. // class factory for the provider
  19. class CTriggerFactory : public IClassFactory
  20. {
  21. public:
  22. CTriggerFactory();
  23. ~CTriggerFactory();
  24. // IUnknown interface members
  25. STDMETHODIMP_(ULONG) AddRef( void );
  26. STDMETHODIMP_(ULONG) Release( void );
  27. STDMETHODIMP QueryInterface( REFIID riid, LPVOID* ppv );
  28. // IClassFactory interface members
  29. STDMETHODIMP CreateInstance( LPUNKNOWN pUnknownOutter, REFIID riid, LPVOID* ppvObject );
  30. STDMETHODIMP LockServer( BOOL bLock );
  31. protected:
  32. DWORD m_dwCount; // holds the object reference count
  33. };
  34. #endif // __TRIGGER_FACTORY