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.

43 lines
1.2 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. DWORD m_dwStrong; // Connection Count
  18. public:
  19. CExternalConnection::CExternalConnection(CSimpSvrObj FAR * lpSimpSvrObj)
  20. {
  21. m_lpObj = lpSimpSvrObj;
  22. m_dwStrong = 0;
  23. };
  24. CExternalConnection::~CExternalConnection() {};
  25. // *** IUnknown methods ***
  26. STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppvObj);
  27. STDMETHODIMP_(ULONG) AddRef ();
  28. STDMETHODIMP_(ULONG) Release ();
  29. // *** IExternalConnection methods ***
  30. STDMETHODIMP_(DWORD) AddConnection (DWORD extconn, DWORD reserved);
  31. STDMETHODIMP_(DWORD) ReleaseConnection (DWORD extconn, DWORD reserved, BOOL fLastReleaseCloses);
  32. };
  33. #endif
  34.