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.

56 lines
931 B

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Trstlist.h : header file
  5. CPropertyPage support for User mgmt wizard
  6. File History:
  7. JonY Apr-96 created
  8. --*/
  9. #include <windows.h>
  10. #include <lm.h>
  11. #include <ntsecapi.h> // \mstools\security\ntsecapi.h
  12. #include <tchar.h>
  13. class CTrustList
  14. {
  15. public:
  16. TCHAR** m_ppszTrustList; // array of trust elements
  17. DWORD m_dwTrustCount; // number of elements in m_ppszTrustList
  18. CTrustList();
  19. ~CTrustList();
  20. BOOL BuildTrustList(LPTSTR Target);
  21. private:
  22. BOOL IsDomainController(LPTSTR Server,
  23. LPBOOL bDomainController);
  24. BOOL EnumTrustedDomains(LSA_HANDLE PolicyHandle);
  25. BOOL AddTrustToList(PLSA_UNICODE_STRING UnicodeString);
  26. //
  27. // helper functions
  28. //
  29. void InitLsaString(PLSA_UNICODE_STRING LsaString,
  30. LPTSTR String);
  31. NTSTATUS OpenPolicy(LPTSTR ServerName,
  32. DWORD DesiredAccess,
  33. PLSA_HANDLE PolicyHandle);
  34. };