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.

69 lines
1.5 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1999 - 1999
  6. //
  7. // File: dpenumaddressobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. #define DPENUMGROUPSINGROUP 1
  12. #define DPEnumAddress 2
  13. #define DPENUMGROUPPLAYERS 3
  14. #define DPENUMGROUPS 4
  15. class C_dxj_DPEnumAddressObject :
  16. public I_dxj_DPEnumAddress,
  17. public CComObjectRoot
  18. {
  19. public:
  20. C_dxj_DPEnumAddressObject() ;
  21. virtual ~C_dxj_DPEnumAddressObject() ;
  22. BEGIN_COM_MAP(C_dxj_DPEnumAddressObject)
  23. COM_INTERFACE_ENTRY(I_dxj_DPEnumAddress)
  24. END_COM_MAP()
  25. DECLARE_AGGREGATABLE(C_dxj_DPEnumAddressObject)
  26. public:
  27. HRESULT STDMETHODCALLTYPE getCount(
  28. /* [retval][out] */ long __RPC_FAR *count);
  29. HRESULT STDMETHODCALLTYPE getType(
  30. /* [in] */ long index,
  31. /* [retval][out] */ BSTR __RPC_FAR *str);
  32. HRESULT STDMETHODCALLTYPE getData(
  33. /* [in] */ long index,
  34. /* [retval][out] */ BSTR __RPC_FAR *str);
  35. static HRESULT C_dxj_DPEnumAddressObject::create(IDirectPlayLobby3 * pdp, I_dxj_DPAddress *addr, I_dxj_DPEnumAddress **ret);
  36. void cleanup();
  37. public:
  38. I_dxj_DPAddress **m_pList;
  39. GUID *m_pList2;
  40. long m_nCount;
  41. long m_nMax;
  42. BOOL m_bProblem;
  43. };