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.

96 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. dssetp.ch
  5. Abstract:
  6. local funciton prototypes/defines
  7. Author:
  8. Mac McLain (MacM) Feb 10, 1997
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef __LSA_H__
  14. #define __LSA_H__
  15. #include <lsarpc.h>
  16. #include <lsaisrv.h>
  17. typedef struct {
  18. BOOLEAN PolicyBackedUp;
  19. BOOLEAN EfsPolicyPresent;
  20. PPOLICY_ACCOUNT_DOMAIN_INFO AccountDomainInfo;
  21. PPOLICY_DNS_DOMAIN_INFO DnsDomainInfo;
  22. PPOLICY_LSA_SERVER_ROLE_INFO ServerRoleInfo;
  23. PPOLICY_DOMAIN_EFS_INFO EfsPolicy;
  24. } DSROLEP_DOMAIN_POLICY_INFO, *PDSROLEP_DOMAIN_POLICY_INFO;
  25. DWORD
  26. DsRolepSetLsaDnsInformationNoParent(
  27. IN LPWSTR DnsDomainName
  28. );
  29. DWORD
  30. DsRolepSetLsaInformationForReplica(
  31. IN HANDLE CallerToken,
  32. IN LPWSTR ReplicaPartner,
  33. IN LPWSTR Account,
  34. IN LPWSTR Password
  35. );
  36. DWORD
  37. DsRolepSetLsaDomainPolicyInfo(
  38. IN LPWSTR DnsDomainName,
  39. IN LPWSTR FlatDomainName,
  40. IN LPWSTR EnterpriseDnsName,
  41. IN GUID *DomainGuid,
  42. IN PSID DomainSid,
  43. DWORD InstallOptions,
  44. OUT PDSROLEP_DOMAIN_POLICY_INFO DomainPolicyInfo
  45. );
  46. DWORD
  47. DsRolepBackupDomainPolicyInfo(
  48. IN PLSA_HANDLE LsaHandle, OPTIONAL
  49. OUT PDSROLEP_DOMAIN_POLICY_INFO DomainInfo
  50. );
  51. DWORD
  52. DsRolepRestoreDomainPolicyInfo(
  53. IN PDSROLEP_DOMAIN_POLICY_INFO DomainPolicyInfo
  54. );
  55. DWORD
  56. DsRolepFreeDomainPolicyInfo(
  57. IN PDSROLEP_DOMAIN_POLICY_INFO DomainPolicyInfo
  58. );
  59. DWORD
  60. DsRolepUpgradeLsaToDs(
  61. BOOLEAN InitializeLsa
  62. );
  63. VOID
  64. DsRolepFindSelfAndParentInForest(
  65. IN PLSAPR_FOREST_TRUST_INFO ForestTrustInfo,
  66. OUT PLSAPR_TREE_TRUST_INFO CurrentEntry,
  67. IN PUNICODE_STRING LocalDomain,
  68. OUT PLSAPR_TREE_TRUST_INFO *ParentEntry,
  69. OUT PLSAPR_TREE_TRUST_INFO *OwnEntry
  70. );
  71. #endif // __LSA_H__