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.

57 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: P R O V I D E R M A N A G E R . H
  7. //
  8. // Contents: Registrar helper object for managing providers.
  9. //
  10. // Notes:
  11. //
  12. // Author: mbend 14 Sep 2000
  13. //
  14. //----------------------------------------------------------------------------
  15. #pragma once
  16. #include "uhres.h" // main symbols
  17. #include "upnphost.h"
  18. #include "hostp.h"
  19. #include "UString.h"
  20. #include "ComUtility.h"
  21. #include "Table.h"
  22. #include "RegDef.h"
  23. #include "Provider.h"
  24. // Typedefs
  25. /////////////////////////////////////////////////////////////////////////////
  26. // CProviderManager
  27. class CProviderManager
  28. {
  29. public:
  30. CProviderManager();
  31. ~CProviderManager();
  32. // Lifetime operations
  33. HRESULT HrShutdown();
  34. // Provider registration
  35. HRESULT HrRegisterProvider(
  36. const wchar_t * szProviderName,
  37. const wchar_t * szProgIDProviderClass,
  38. const wchar_t * szInitString,
  39. const wchar_t * szContainerId);
  40. HRESULT UnegisterProvider(
  41. const wchar_t * szProviderName);
  42. private:
  43. CProviderManager(const CProviderManager &);
  44. CProviderManager & operator=(const CProviderManager &);
  45. typedef CTable<CUString, CProvider> ProviderTable;
  46. ProviderTable m_providerTable;
  47. };