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.

60 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1998 - 1998
  6. //
  7. // File: dpenumobj.h
  8. //
  9. //--------------------------------------------------------------------------
  10. #include "resource.h"
  11. class C_dxj_DPEnumObject :
  12. public I_dxj_DPEnumServiceProviders,
  13. public CComObjectRoot
  14. {
  15. public:
  16. C_dxj_DPEnumObject() ;
  17. virtual ~C_dxj_DPEnumObject() ;
  18. BEGIN_COM_MAP(C_dxj_DPEnumObject)
  19. COM_INTERFACE_ENTRY(I_dxj_DPEnumServiceProviders)
  20. END_COM_MAP()
  21. DECLARE_AGGREGATABLE(C_dxj_DPEnumObject)
  22. public:
  23. HRESULT STDMETHODCALLTYPE getName(
  24. /* [in] */ long index,
  25. /* [retval][out] */ BSTR __RPC_FAR *ret);
  26. HRESULT STDMETHODCALLTYPE getGuid(
  27. /* [in] */ long index,
  28. /* [retval][out] */ BSTR __RPC_FAR *ret);
  29. HRESULT STDMETHODCALLTYPE getVersion(
  30. /* [in] */ long index,
  31. /* [in] */ long __RPC_FAR *majorVersion,
  32. /* [out][in] */ long __RPC_FAR *minorVersion);
  33. HRESULT STDMETHODCALLTYPE getCount( long *count);
  34. static HRESULT C_dxj_DPEnumObject::create(DIRECTPLAYENUMERATE pcbFunc,I_dxj_DPEnumServiceProviders **ppRet);
  35. public:
  36. DPServiceProvider *m_pList;
  37. long m_nCount;
  38. long m_nMax;
  39. BOOL m_bProblem;
  40. };