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.

45 lines
1.5 KiB

  1. // AccessChecker.h : Declaration of the CAccessChecker
  2. #ifndef __ACCESSCHECKER_H_
  3. #define __ACCESSCHECKER_H_
  4. #include "resource.h" // main symbols
  5. #include "WorkObj.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. // CAccessChecker
  8. class ATL_NO_VTABLE CAccessChecker :
  9. public CComObjectRootEx<CComSingleThreadModel>,
  10. public CComCoClass<CAccessChecker, &CLSID_AccessChecker>,
  11. public IDispatchImpl<IAccessChecker, &IID_IAccessChecker, &LIBID_MCSDCTWORKEROBJECTSLib>
  12. {
  13. public:
  14. CAccessChecker()
  15. {
  16. }
  17. DECLARE_REGISTRY_RESOURCEID(IDR_ACCESSCHECKER)
  18. DECLARE_PROTECT_FINAL_CONSTRUCT()
  19. BEGIN_COM_MAP(CAccessChecker)
  20. COM_INTERFACE_ENTRY(IAccessChecker)
  21. COM_INTERFACE_ENTRY(IDispatch)
  22. END_COM_MAP()
  23. // IAccessChecker
  24. public:
  25. STDMETHOD(IsInSameForest)(BSTR srcDomain, BSTR tgtDomain, /*[out]*/ BOOL * pbIsSame);
  26. STDMETHOD(CanUseAddSidHistory)(BSTR srcDomain, BSTR tgtDomain, BSTR tgtDC, /*[out]*/ LONG * pbCanUseIt);
  27. STDMETHOD(IsNativeMode)(BSTR Domain, /*[out]*/ BOOL * pbIsNativeMode);
  28. STDMETHOD(GetOsVersion)(BSTR server, /*[out]*/ DWORD * pdwVerMaj, /*[out]*/ DWORD * pdwVerMin, /*[out]*/ DWORD * pdwVerSP);
  29. STDMETHOD(GetPasswordPolicy)(BSTR domain,/*[out]*/ LONG * dwPasswordLength);
  30. STDMETHOD(EnableAuditing)(/*[in]*/BSTR sDC);
  31. STDMETHOD(AddRegKey)(/*[in]*/BSTR sDC,LONG bReboot);
  32. STDMETHOD(AddLocalGroup)(/*[in]*/BSTR srcDomain,/*[in]*/BSTR srcDC);
  33. private:
  34. long DetectAuditing(BSTR sDC);
  35. };
  36. #endif //__ACCESSCHECKER_H_