windows-nt/Source/XPSP1/NT/ds/security/dsrole/server/lsa.h
2020-09-26 16:20:57 +08:00

97 lines
1.8 KiB
C

/*++
Copyright (c) 1997 Microsoft Corporation
Module Name:
dssetp.ch
Abstract:
local funciton prototypes/defines
Author:
Mac McLain (MacM) Feb 10, 1997
Environment:
User Mode
Revision History:
--*/
#ifndef __LSA_H__
#define __LSA_H__
#include <lsarpc.h>
#include <lsaisrv.h>
typedef struct {
BOOLEAN PolicyBackedUp;
BOOLEAN EfsPolicyPresent;
PPOLICY_ACCOUNT_DOMAIN_INFO AccountDomainInfo;
PPOLICY_DNS_DOMAIN_INFO DnsDomainInfo;
PPOLICY_LSA_SERVER_ROLE_INFO ServerRoleInfo;
PPOLICY_DOMAIN_EFS_INFO EfsPolicy;
} DSROLEP_DOMAIN_POLICY_INFO, *PDSROLEP_DOMAIN_POLICY_INFO;
DWORD
DsRolepSetLsaDnsInformationNoParent(
IN LPWSTR DnsDomainName
);
DWORD
DsRolepSetLsaInformationForReplica(
IN HANDLE CallerToken,
IN LPWSTR ReplicaPartner,
IN LPWSTR Account,
IN LPWSTR Password
);
DWORD
DsRolepSetLsaDomainPolicyInfo(
IN LPWSTR DnsDomainName,
IN LPWSTR FlatDomainName,
IN LPWSTR EnterpriseDnsName,
IN GUID *DomainGuid,
IN PSID DomainSid,
DWORD InstallOptions,
OUT PDSROLEP_DOMAIN_POLICY_INFO DomainPolicyInfo
);
DWORD
DsRolepBackupDomainPolicyInfo(
IN PLSA_HANDLE LsaHandle, OPTIONAL
OUT PDSROLEP_DOMAIN_POLICY_INFO DomainInfo
);
DWORD
DsRolepRestoreDomainPolicyInfo(
IN PDSROLEP_DOMAIN_POLICY_INFO DomainPolicyInfo
);
DWORD
DsRolepFreeDomainPolicyInfo(
IN PDSROLEP_DOMAIN_POLICY_INFO DomainPolicyInfo
);
DWORD
DsRolepUpgradeLsaToDs(
BOOLEAN InitializeLsa
);
VOID
DsRolepFindSelfAndParentInForest(
IN PLSAPR_FOREST_TRUST_INFO ForestTrustInfo,
OUT PLSAPR_TREE_TRUST_INFO CurrentEntry,
IN PUNICODE_STRING LocalDomain,
OUT PLSAPR_TREE_TRUST_INFO *ParentEntry,
OUT PLSAPR_TREE_TRUST_INFO *OwnEntry
);
#endif // __LSA_H__