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.

72 lines
1.8 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1999
  6. //
  7. // File: dpenumconnectionsobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DPEnumConnectionsObject :
  12. public I_dxj_DPEnumConnections,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_DPEnumConnectionsObject() ;
  17. virtual ~C_dxj_DPEnumConnectionsObject() ;
  18. BEGIN_COM_MAP(C_dxj_DPEnumConnectionsObject)
  19. COM_INTERFACE_ENTRY(I_dxj_DPEnumConnections)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_DPEnumConnectionsObject)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getAddress(
  24. /* [in] */ long index,
  25. /* [retval][out] */ I_dxj_DPAddress __RPC_FAR *__RPC_FAR *retV);
  26. HRESULT STDMETHODCALLTYPE getFlags(
  27. /* [in] */ long index,
  28. /* [retval][out] */ long __RPC_FAR *retV);
  29. HRESULT STDMETHODCALLTYPE getGuid(
  30. /* [in] */ long index,
  31. /* [retval][out] */ BSTR __RPC_FAR *retV);
  32. HRESULT STDMETHODCALLTYPE getName(
  33. /* [in] */ long index,
  34. /* [retval][out] */ BSTR __RPC_FAR *retV);
  35. //HRESULT STDMETHODCALLTYPE getLongName(
  36. // /* [in] */ long index,
  37. // /* [retval][out] */ BSTR __RPC_FAR *retV);
  38. HRESULT STDMETHODCALLTYPE getCount(
  39. /* [retval][out] */ long __RPC_FAR *count);
  40. static HRESULT C_dxj_DPEnumConnectionsObject::create(IDirectPlay3 * pdp, BSTR guid, long flags, I_dxj_DPEnumConnections **ppRet);
  41. public:
  42. DPConnection *m_pList;
  43. I_dxj_DPAddress **m_pList2;
  44. long m_nCount;
  45. long m_nMax;
  46. BOOL m_bProblem;
  47. };