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.

123 lines
2.4 KiB

  1. //***************************************************************************
  2. //
  3. // File:
  4. //
  5. // Module: MS SNMP Provider
  6. //
  7. // Purpose:
  8. //
  9. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. #ifndef _SNMPProvClassFactory_H
  13. #define _SNMPProvClassFactory_H
  14. class CClasProvClassFactory : public IClassFactory
  15. {
  16. private:
  17. long m_referenceCount ;
  18. protected:
  19. public:
  20. static LONG locksInProgress ;
  21. static LONG objectsInProgress ;
  22. CClasProvClassFactory () ;
  23. ~CClasProvClassFactory ( void ) ;
  24. //IUnknown members
  25. STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
  26. STDMETHODIMP_( ULONG ) AddRef () ;
  27. STDMETHODIMP_( ULONG ) Release () ;
  28. //IClassFactory members
  29. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
  30. STDMETHODIMP LockServer ( BOOL ) ;
  31. };
  32. class CPropProvClassFactory : public IClassFactory
  33. {
  34. private:
  35. long m_referenceCount ;
  36. protected:
  37. public:
  38. static LONG locksInProgress ;
  39. static LONG objectsInProgress ;
  40. CPropProvClassFactory () ;
  41. ~CPropProvClassFactory ( void ) ;
  42. //IUnknown members
  43. STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
  44. STDMETHODIMP_( ULONG ) AddRef () ;
  45. STDMETHODIMP_( ULONG ) Release () ;
  46. //IClassFactory members
  47. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
  48. STDMETHODIMP LockServer ( BOOL ) ;
  49. };
  50. class CSNMPEventProviderClassFactory : public IClassFactory
  51. {
  52. private:
  53. long m_referenceCount ;
  54. protected:
  55. public:
  56. static LONG locksInProgress ;
  57. static LONG objectsInProgress ;
  58. CSNMPEventProviderClassFactory () ;
  59. ~CSNMPEventProviderClassFactory ( void ) ;
  60. //IUnknown members
  61. STDMETHODIMP QueryInterface ( REFIID , LPVOID FAR * ) ;
  62. STDMETHODIMP_( ULONG ) AddRef () ;
  63. STDMETHODIMP_( ULONG ) Release () ;
  64. //IClassFactory members
  65. STDMETHODIMP LockServer ( BOOL ) ;
  66. };
  67. class CSNMPEncapEventProviderClassFactory : public CSNMPEventProviderClassFactory
  68. {
  69. public:
  70. //IClassFactory member
  71. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
  72. };
  73. class CSNMPRefEventProviderClassFactory : public CSNMPEventProviderClassFactory
  74. {
  75. public:
  76. //IClassFactory member
  77. STDMETHODIMP CreateInstance ( LPUNKNOWN , REFIID , LPVOID FAR * ) ;
  78. };
  79. #endif // _SNMPProvClassFactory_H