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.

44 lines
1.0 KiB

  1. #pragma once
  2. #include "MigrationBase.h"
  3. //---------------------------------------------------------------------------
  4. // CServiceAccountEnumeration
  5. //---------------------------------------------------------------------------
  6. class ATL_NO_VTABLE CServiceAccountEnumeration :
  7. public CComObjectRootEx<CComSingleThreadModel>,
  8. public IDispatchImpl<IServiceAccountEnumeration, &IID_IServiceAccountEnumeration, &LIBID_ADMT>,
  9. public CMigrationBase
  10. {
  11. public:
  12. CServiceAccountEnumeration();
  13. ~CServiceAccountEnumeration();
  14. DECLARE_NO_REGISTRY()
  15. BEGIN_COM_MAP(CServiceAccountEnumeration)
  16. COM_INTERFACE_ENTRY(IDispatch)
  17. COM_INTERFACE_ENTRY(IServiceAccountEnumeration)
  18. END_COM_MAP()
  19. public:
  20. // IServiceAccountEnumeration
  21. STDMETHOD(Enumerate)(long lOption, VARIANT vntInclude, VARIANT vntExclude);
  22. protected:
  23. virtual void DoNames();
  24. virtual void DoDomain();
  25. void DoContainers(CContainer& rSource);
  26. void DoComputers(CContainer& rSource);
  27. void DoComputers(CDomainAccounts& rComputers);
  28. void SetOptions(CVarSet& rVarSet);
  29. };