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.

53 lines
1.6 KiB

  1. // Mover.h: Definition of the CMover class
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_MOVER_H__42ADFF02_491E_11D3_8AEE_00A0C9AFE114__INCLUDED_)
  5. #define AFX_MOVER_H__42ADFF02_491E_11D3_8AEE_00A0C9AFE114__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. #include "resource.h" // main symbols
  10. #include "winldap.h"
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CMover
  13. class CMover :
  14. public IDispatchImpl<IMover, &IID_IMover, &LIBID_MOVEOBJLib>,
  15. public ISupportErrorInfoImpl<&IID_IMover>,
  16. public CComObjectRoot,
  17. public CComCoClass<CMover,&CLSID_Mover>
  18. {
  19. public:
  20. CMover() {m_srcLD = NULL; m_tgtLD = NULL;}
  21. ~CMover() { Close(); }
  22. BEGIN_COM_MAP(CMover)
  23. COM_INTERFACE_ENTRY(IDispatch)
  24. COM_INTERFACE_ENTRY(IMover)
  25. COM_INTERFACE_ENTRY(ISupportErrorInfo)
  26. END_COM_MAP()
  27. //DECLARE_NOT_AGGREGATABLE(CMover)
  28. // Remove the comment from the line above if you don't want your object to
  29. // support aggregation.
  30. DECLARE_REGISTRY_RESOURCEID(IDR_Mover)
  31. // IMover
  32. public:
  33. STDMETHOD(MoveObject)(BSTR sourcePath, BSTR targetRDN,BSTR targetOuPath);
  34. STDMETHOD(CheckMove)(BSTR sourcePath, BSTR targetRDN,BSTR targetOuPath);
  35. STDMETHOD(Close)();
  36. STDMETHOD(Connect)(BSTR sourceComp, BSTR targetComp, BSTR srcCredDomain, BSTR srcCredAccount, BSTR srcCredPassword,
  37. BSTR tgtCredDomain, BSTR tgtCredAccount, BSTR tgtCredPassword);
  38. protected:
  39. LDAP * m_srcLD;
  40. LDAP * m_tgtLD;
  41. WCHAR m_sourceDSA[300];
  42. WCHAR m_targetDSA[300];
  43. };
  44. #endif // !defined(AFX_MOVER_H__42ADFF02_491E_11D3_8AEE_00A0C9AFE114__INCLUDED_)