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

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