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.

52 lines
1.3 KiB

  1. // SrcSidUpdate.h : Declaration of the CSrcSidUpdate
  2. #ifndef __SRCSIDUPDATE_H_
  3. #define __SRCSIDUPDATE_H_
  4. #include "resource.h" // main symbols
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CSrcSidUpdate
  7. class ATL_NO_VTABLE CSrcSidUpdate :
  8. public CComObjectRootEx<CComSingleThreadModel>,
  9. public CComCoClass<CSrcSidUpdate, &CLSID_SrcSidUpdate>,
  10. public IDispatchImpl<ISrcSidUpdate, &IID_ISrcSidUpdate, &LIBID_UPDATEMOTLib>
  11. {
  12. public:
  13. CSrcSidUpdate()
  14. {
  15. domainList.RemoveAll();
  16. excludeList.RemoveAll();
  17. populatedList.RemoveAll();
  18. }
  19. ~CSrcSidUpdate()
  20. {
  21. domainList.RemoveAll();
  22. excludeList.RemoveAll();
  23. populatedList.RemoveAll();
  24. }
  25. DECLARE_REGISTRY_RESOURCEID(IDR_SRCSIDUPDATE)
  26. DECLARE_NOT_AGGREGATABLE(CSrcSidUpdate)
  27. DECLARE_PROTECT_FINAL_CONSTRUCT()
  28. BEGIN_COM_MAP(CSrcSidUpdate)
  29. COM_INTERFACE_ENTRY(ISrcSidUpdate)
  30. COM_INTERFACE_ENTRY(IDispatch)
  31. END_COM_MAP()
  32. // ISrcSidUpdate
  33. public:
  34. STDMETHOD(CreateSrcSidColumn)(/*[in]*/ VARIANT_BOOL bHide, /*[out, retval]*/ VARIANT_BOOL * pbCreated);
  35. STDMETHOD(QueryForSrcSidColumn)(/*[out, retval]*/ VARIANT_BOOL * pbFound);
  36. private:
  37. CStringList domainList;
  38. CStringList excludeList;
  39. CStringList populatedList;
  40. HRESULT FillDomainListFromMOT();
  41. void ReInitializeLists();
  42. };
  43. #endif //__SRCSIDUPDATE_H_