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.

130 lines
2.3 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. Main.h
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef _Main_H
  9. #define _Main_H
  10. /******************************************************************************
  11. *
  12. * Name:
  13. *
  14. *
  15. * Description:
  16. *
  17. *
  18. *****************************************************************************/
  19. class FactoryLifeTimeThread : public WmiThread < ULONG >
  20. {
  21. private:
  22. WmiAllocator &m_Allocator ;
  23. protected:
  24. public: /* Internal */
  25. FactoryLifeTimeThread (
  26. WmiAllocator & a_Allocator ,
  27. const ULONG &a_Timeout
  28. ) ;
  29. ~FactoryLifeTimeThread () ;
  30. WmiStatusCode Initialize_Callback () ;
  31. WmiStatusCode UnInitialize_Callback () ;
  32. WmiStatusCode TimedOut () ;
  33. BOOL QuotaCheck () ;
  34. };
  35. /******************************************************************************
  36. *
  37. * Name:
  38. *
  39. *
  40. * Description:
  41. *
  42. *
  43. *****************************************************************************/
  44. class Task_ObjectDestruction : public WmiTask < ULONG >
  45. {
  46. private:
  47. protected:
  48. public: // Internal
  49. Task_ObjectDestruction ( WmiAllocator &a_Allocator ) : WmiTask < ULONG > ( a_Allocator )
  50. {
  51. }
  52. WmiStatusCode Process ( WmiThread <ULONG> &a_Thread ) ;
  53. } ;
  54. /******************************************************************************
  55. *
  56. * Name:
  57. *
  58. *
  59. * Description:
  60. *
  61. *
  62. *****************************************************************************/
  63. class Task_FreeLibraries : public WmiTask < ULONG >
  64. {
  65. private:
  66. protected:
  67. public: // Internal
  68. Task_FreeLibraries ( WmiAllocator &a_Allocator ) : WmiTask < ULONG > ( a_Allocator )
  69. {
  70. }
  71. WmiStatusCode Process ( WmiThread <ULONG> &a_Thread ) ;
  72. } ;
  73. /******************************************************************************
  74. *
  75. * Name:
  76. *
  77. *
  78. * Description:
  79. *
  80. *
  81. *****************************************************************************/
  82. STDAPI DllRegisterServer () ;
  83. STDAPI DllUnregisterServer () ;
  84. /******************************************************************************
  85. *
  86. * Name:
  87. *
  88. *
  89. * Description:
  90. *
  91. *
  92. *****************************************************************************/
  93. void SetObjectDestruction () ;
  94. void SetProviderDestruction();
  95. #endif // _Main_H