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.

53 lines
1.3 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
  18. CConnectionInfo:
  19. public IConnectionInfo
  20. {
  21. private:
  22. // IUnknown
  23. LONG m_cRef;
  24. // IConnectionInfo
  25. IConfigurationConnection * m_pcc;
  26. OBJECTCOOKIE m_cookieParent;
  27. private: // Methods
  28. CConnectionInfo( );
  29. ~CConnectionInfo();
  30. STDMETHOD( Init )( OBJECTCOOKIE pcookieParentIn );
  31. public: // Methods
  32. static HRESULT
  33. S_HrCreateInstance( IUnknown ** ppunkOut,
  34. OBJECTCOOKIE pcookieParentIn
  35. );
  36. // IUnknown
  37. STDMETHOD( QueryInterface )( REFIID riid, LPVOID *ppv );
  38. STDMETHOD_( ULONG, AddRef )( void );
  39. STDMETHOD_( ULONG, Release )( void );
  40. // IConnectionInfo
  41. STDMETHOD( GetConnection )( IConfigurationConnection ** pccOut );
  42. STDMETHOD( SetConnection )( IConfigurationConnection * pccIn );
  43. STDMETHOD( GetParent )( OBJECTCOOKIE * pcookieOut );
  44. }; // class CConnectionInfo