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.

33 lines
748 B

  1. #include "resource.h"
  2. class C_dxj_DIEnumObject :
  3. public I_dxj_DIEnum,
  4. public CComCoClass<C_dxj_DIEnumObject, &CLSID__dxj_DIEnum>,
  5. public CComObjectRoot
  6. {
  7. public:
  8. C_dxj_DIEnumObject() ;
  9. virtual ~C_dxj_DIEnumObject() ;
  10. BEGIN_COM_MAP(C_dxj_DIEnumObject)
  11. COM_INTERFACE_ENTRY( I_dxj_DIEnum)
  12. END_COM_MAP()
  13. DECLARE_AGGREGATABLE(C_dxj_DIEnumObject)
  14. //DECLARE_REGISTRY(CLSID__dxj_DIEnum, "DIRECT.DIEnum.5", "DIRECT.DIEnum.5", IDS_GENERIC_DESC, THREADFLAGS_BOTH)
  15. public:
  16. HRESULT STDMETHODCALLTYPE init(long cbFunc);
  17. HRESULT STDMETHODCALLTYPE getCount(long * ret);
  18. HRESULT STDMETHODCALLTYPE getItem(DRIVERINFO *info);
  19. public:
  20. DRIVERINFO *m_pList;
  21. long m_nCount;
  22. long m_nMax;
  23. };