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.

77 lines
1.9 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dpenumplayersobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. #define DPENUMGROUPSINGROUP 1
  12. #define DPENUMPLAYERS 2
  13. #define DPENUMGROUPPLAYERS 3
  14. #define DPENUMGROUPS 4
  15. class C_dxj_DPEnumPlayersObject :
  16. public I_dxj_DPEnumPlayers2,
  17. public CComObjectRoot
  18. {
  19. public:
  20. C_dxj_DPEnumPlayersObject() ;
  21. virtual ~C_dxj_DPEnumPlayersObject() ;
  22. BEGIN_COM_MAP(C_dxj_DPEnumPlayersObject)
  23. COM_INTERFACE_ENTRY(I_dxj_DPEnumPlayers2)
  24. END_COM_MAP()
  25. DECLARE_AGGREGATABLE(C_dxj_DPEnumPlayersObject)
  26. public:
  27. HRESULT STDMETHODCALLTYPE getCount(
  28. /* [retval][out] */ long __RPC_FAR *count);
  29. HRESULT STDMETHODCALLTYPE getFlags(
  30. /* [in] */ long index,
  31. /* [retval][out] */ long __RPC_FAR *count);
  32. HRESULT STDMETHODCALLTYPE getType(
  33. /* [in] */ long index,
  34. /* [retval][out] */ long __RPC_FAR *count);
  35. HRESULT STDMETHODCALLTYPE getDPID(
  36. /* [in] */ long index,
  37. /* [retval][out] */ long __RPC_FAR *count);
  38. HRESULT STDMETHODCALLTYPE getShortName(
  39. /* [in] */ long index,
  40. /* [retval][out] */ BSTR __RPC_FAR *retV);
  41. HRESULT STDMETHODCALLTYPE getLongName(
  42. /* [in] */ long index,
  43. /* [retval][out] */ BSTR __RPC_FAR *retV);
  44. static HRESULT C_dxj_DPEnumPlayersObject::create(IDirectPlay3 * pdp, long customFlags,long groupId, BSTR strGuid, long flags, I_dxj_DPEnumPlayers2 **ppRet);
  45. public:
  46. DPPlayerInfo *m_pList;
  47. long m_nCount;
  48. long m_nMax;
  49. BOOL m_bProblem;
  50. };