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.

37 lines
1.0 KiB

  1. // MDSPEnumDevice.h : Declaration of the CMDSPEnumDevice
  2. #ifndef __MDSPENUMDEVICE_H_
  3. #define __MDSPENUMDEVICE_H_
  4. #include "resource.h" // main symbols
  5. #include "MdspDefs.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CMDSPEnumDevice
  8. class ATL_NO_VTABLE CMDSPEnumDevice :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CMDSPEnumDevice, &CLSID_MDSPEnumDevice>,
  11. public IMDSPEnumDevice
  12. {
  13. public:
  14. CMDSPEnumDevice();
  15. DECLARE_REGISTRY_RESOURCEID(IDR_MDSPENUMDEVICE)
  16. BEGIN_COM_MAP(CMDSPEnumDevice)
  17. COM_INTERFACE_ENTRY(IMDSPEnumDevice)
  18. END_COM_MAP()
  19. // IMDSPEnumDevice
  20. public:
  21. ULONG m_nCurOffset;
  22. ULONG m_nMaxDeviceCount;
  23. WCHAR m_cEnumDriveLetter[MDSP_MAX_DRIVE_COUNT];
  24. STDMETHOD(Clone)(/*[out]*/ IMDSPEnumDevice **ppEnumDevice);
  25. STDMETHOD(Reset)();
  26. STDMETHOD(Skip)(/*[in]*/ ULONG celt, /*[out]*/ ULONG *pceltFetched);
  27. STDMETHOD(Next)(/*[in]*/ ULONG celt, /*[out]*/ IMDSPDevice **ppDevice, /*[out]*/ ULONG *pceltFetched);
  28. };
  29. #endif //__MDSPENUMDEVICE_H_