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.

44 lines
1.1 KiB

  1. //**********************************************************************
  2. // File name: iec.h
  3. //
  4. // Definition of CExternalConnection
  5. //
  6. // Copyright (c) 1993 Microsoft Corporation. All rights reserved.
  7. //**********************************************************************
  8. #if !defined( _IEC_H_)
  9. #define _IEC_H_
  10. #include <ole2.h>
  11. #include "obj.h"
  12. class CSimpSvrObj;
  13. interface CExternalConnection : public IExternalConnection
  14. {
  15. private:
  16. CSimpSvrObj FAR * m_lpObj; // Ptr to object
  17. int m_nCount; // Ref count
  18. DWORD m_dwStrong; // Connection Count
  19. public:
  20. CExternalConnection::CExternalConnection(CSimpSvrObj FAR * lpSimpSvrObj)
  21. {
  22. m_lpObj = lpSimpSvrObj;
  23. m_nCount = 0;
  24. m_dwStrong = 0;
  25. };
  26. CExternalConnection::~CExternalConnection() {};
  27. // *** IUnknown methods ***
  28. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  29. STDMETHODIMP_(ULONG) AddRef ();
  30. STDMETHODIMP_(ULONG) Release ();
  31. // *** IExternalConnection methods ***
  32. STDMETHODIMP_(DWORD) AddConnection (DWORD extconn, DWORD reserved);
  33. STDMETHODIMP_(DWORD) ReleaseConnection (DWORD extconn, DWORD reserved, BOOL fLastReleaseCloses);
  34. };
  35. #endif