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.

69 lines
1.9 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 CConnectionManager
  18. : public IConnectionManager
  19. {
  20. private:
  21. // IUnknown
  22. LONG m_cRef;
  23. private: // Methods
  24. CConnectionManager( void );
  25. ~CConnectionManager( void );
  26. STDMETHOD( HrInit )( void );
  27. HRESULT
  28. HrGetNodeConnection(
  29. OBJECTCOOKIE cookieIn,
  30. IConfigurationConnection ** ppccOut
  31. );
  32. HRESULT
  33. HrGetClusterConnection(
  34. OBJECTCOOKIE cookieIn,
  35. IConfigurationConnection ** ppccOut
  36. );
  37. HRESULT
  38. HrStoreConnection(
  39. IConnectionInfo * pciIn,
  40. IConfigurationConnection * pccIn,
  41. IUnknown ** ppunkOut
  42. );
  43. HRESULT
  44. HrGetConfigurationConnection(
  45. OBJECTCOOKIE cookieIn,
  46. IConnectionInfo * pciIn,
  47. IUnknown ** ppunkOut
  48. );
  49. public: // Methods
  50. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  51. // IUnknown
  52. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  53. STDMETHOD_( ULONG, AddRef )( void );
  54. STDMETHOD_( ULONG, Release )( void );
  55. // IConnectionManager
  56. STDMETHOD( GetConnectionToObject )( OBJECTCOOKIE cookieIn,
  57. IUnknown ** ppunkOut
  58. );
  59. }; //*** class CConnectionManager