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.

51 lines
1.4 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // ConnectionInfo.h
  7. //
  8. // Description:
  9. // CConnectionInfo implementation.
  10. //
  11. // Maintained By:
  12. // Galen Barbee (GalenB) 22-NOV-1999
  13. //
  14. //////////////////////////////////////////////////////////////////////////////
  15. #pragma once
  16. // CConnectionInfo
  17. class CConnectionInfo
  18. : public IConnectionInfo
  19. {
  20. private:
  21. // IUnknown
  22. LONG m_cRef;
  23. // IConnectionInfo
  24. IConfigurationConnection * m_pcc;
  25. OBJECTCOOKIE m_cookieParent;
  26. private: // Methods
  27. CConnectionInfo( void );
  28. ~CConnectionInfo( void );
  29. STDMETHOD( HrInit )( OBJECTCOOKIE pcookieParentIn );
  30. public: // Methods
  31. static HRESULT
  32. S_HrCreateInstance( IUnknown ** ppunkOut,
  33. OBJECTCOOKIE pcookieParentIn
  34. );
  35. // IUnknown
  36. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  37. STDMETHOD_( ULONG, AddRef )( void );
  38. STDMETHOD_( ULONG, Release )( void );
  39. // IConnectionInfo
  40. STDMETHOD( GetConnection )( IConfigurationConnection ** pccOut );
  41. STDMETHOD( SetConnection )( IConfigurationConnection * pccIn );
  42. STDMETHOD( GetParent )( OBJECTCOOKIE * pcookieOut );
  43. }; //*** class CConnectionInfo