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.

59 lines
1.5 KiB

  1. //
  2. // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
  3. //
  4. // ***************************************************************************
  5. //
  6. // Original Author: Rajesh Rao
  7. //
  8. // $Author: rajeshr $
  9. // $Date: 6/11/98 4:43p $
  10. // $Workfile:clsproi.cpp $
  11. //
  12. // $Modtime: 6/11/98 11:21a $
  13. // $Revision: 1 $
  14. // $Nokeywords: $
  15. //
  16. //
  17. // Description: Contains implementation of the class that is used to initialize the
  18. // CDSClassProvider class
  19. //
  20. //***************************************************************************
  21. #include "precomp.h"
  22. //***************************************************************************
  23. //
  24. // CDSClassProviderInitializer::CDSClassProviderInitializer
  25. //
  26. // Constructor Parameters:
  27. // None
  28. //
  29. //
  30. //***************************************************************************
  31. CDSClassProviderInitializer :: CDSClassProviderInitializer ()
  32. {
  33. CDSClassProvider :: CLASS_STR = SysAllocString(L"__CLASS");
  34. CDSClassProvider :: s_pWbemCache = new CWbemCache();
  35. }
  36. //***************************************************************************
  37. //
  38. // CDSClassProviderInitializer::CDSClassProviderInitializer
  39. //
  40. // Destructor
  41. //
  42. //
  43. //***************************************************************************
  44. CDSClassProviderInitializer :: ~CDSClassProviderInitializer ()
  45. {
  46. if (CDSClassProvider::s_pWbemCache)
  47. {
  48. delete CDSClassProvider::s_pWbemCache;
  49. CDSClassProvider::s_pWbemCache = NULL ;
  50. }
  51. SysFreeString(CDSClassProvider::CLASS_STR);
  52. }