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.

59 lines
1.9 KiB

  1. //---------------------------------------------------------------------------
  2. // TrustEnumerator.h
  3. //
  4. // declaration of CTrustEnumerator: a COM object for enumerating trust relationships
  5. //
  6. // (c) Copyright 1999, Mission Critical Software, Inc., All Rights Reserved
  7. //
  8. // Proprietary and confidential to Mission Critical Software, Inc.
  9. //---------------------------------------------------------------------------
  10. #ifndef __TRUSTENUMERATOR_H_
  11. #define __TRUSTENUMERATOR_H_
  12. #include "resource.h" // main symbols
  13. /////////////////////////////////////////////////////////////////////////////
  14. // CTrustEnumerator
  15. class ATL_NO_VTABLE CTrustEnumerator :
  16. public CComObjectRootEx<CComSingleThreadModel>,
  17. public CComCoClass<CTrustEnumerator, &CLSID_TrustEnumerator>,
  18. public IDispatchImpl<ITrustEnumerator, &IID_ITrustEnumerator, &LIBID_MCSENUMTRUSTRELATIONSLib>
  19. {
  20. public:
  21. CTrustEnumerator()
  22. {
  23. }
  24. DECLARE_REGISTRY_RESOURCEID(IDR_TRUSTENUMERATOR)
  25. DECLARE_PROTECT_FINAL_CONSTRUCT()
  26. BEGIN_COM_MAP(CTrustEnumerator)
  27. COM_INTERFACE_ENTRY(ITrustEnumerator)
  28. COM_INTERFACE_ENTRY(IDispatch)
  29. END_COM_MAP()
  30. // ITrustEnumerator
  31. public:
  32. // **enumeration is an IVarSet that contains the the enumerated domain information in the form:
  33. // [Server1.Name] DEVBOLES
  34. // [Server1.TrustAttributes] 16777216
  35. // [Server1.TrustDirection] 2
  36. // [Server1.TrustType] 1
  37. // [Server2] <Empty>
  38. // [Server2.Name] devrdt1.devblewerg.com
  39. // [Server2.TrustAttributes] 0
  40. // [Server2.TrustDirection] 3
  41. // [Server2.TrustType] 2
  42. // [Server3] <Empty>
  43. // [Server3.Name] MCSFOX1
  44. // [Server3.TrustAttributes] 16777216
  45. // [Server3.TrustDirection] 2
  46. // [Server3.TrustType] 1
  47. STDMETHOD(getTrustRelations)(/*[in]*/ BSTR server, /*[out, retval]*/ IUnknown **enumeration);
  48. STDMETHOD(createTrust)(/*[in]*/ BSTR trustingDomain,/*[in]*/ BSTR trustedDomain);
  49. };
  50. #endif //__TRUSTENUMERATOR_H_