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.

72 lines
1.8 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ConnectionMgr.h
  7. //
  8. // Description:
  9. // Connection Manager implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 22-NOV-1999
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CConnectionManager
  17. class
  18. CConnectionManager:
  19. public IConnectionManager
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. private: // Methods
  25. CConnectionManager( void );
  26. ~CConnectionManager( void );
  27. STDMETHOD(Init)( void );
  28. HRESULT
  29. HrGetNodeConnection(
  30. OBJECTCOOKIE cookieIn,
  31. IConfigurationConnection ** ppccOut
  32. );
  33. HRESULT
  34. HrGetClusterConnection(
  35. OBJECTCOOKIE cookieIn,
  36. IConfigurationConnection ** ppccOut
  37. );
  38. HRESULT
  39. HrStoreConnection(
  40. IConnectionInfo * pciIn,
  41. IConfigurationConnection * pccIn,
  42. IUnknown ** ppunkOut
  43. );
  44. HRESULT
  45. HrGetConfigurationConnection(
  46. OBJECTCOOKIE cookieIn,
  47. IConnectionInfo * pciIn,
  48. IUnknown ** ppunkOut
  49. );
  50. public: // Methods
  51. static HRESULT
  52. S_HrCreateInstance( IUnknown ** ppunkOut );
  53. // IUnknown
  54. STDMETHOD(QueryInterface)( REFIID riid, LPVOID * ppv );
  55. STDMETHOD_(ULONG, AddRef)(void);
  56. STDMETHOD_(ULONG, Release)(void);
  57. // IConnectionManager
  58. STDMETHOD(GetConnectionToObject)( OBJECTCOOKIE cookieIn,
  59. IUnknown ** ppunkOut
  60. );
  61. }; // class CConnectionManager