Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The LsaSetDomainInformationPolicy function sets domain information to the Policy object.
Syntax
NTSTATUS LsaSetDomainInformationPolicy(
[in] LSA_HANDLE PolicyHandle,
[in] POLICY_DOMAIN_INFORMATION_CLASS InformationClass,
[in] PVOID Buffer
);
Parameters
[in] PolicyHandle
A handle to the Policy object for the system.
[in] InformationClass
POLICY_DOMAIN_INFORMATION_CLASS enumeration that specifies the information to be set to the Policy object. The following table shows the possible values.
Value | Meaning |
---|---|
|
The information is for Encrypting File System. |
|
The information is for a Kerberos ticket. |
[in] Buffer
Pointer to a buffer that contains the information to set to the Policy object.
Return value
If the function succeeds, the return value is STATUS_SUCCESS.
If the function fails, the return value is an NTSTATUS code, which can be the following value or one of the LSA Policy Function Return Values.
Return code/value | Description |
---|---|
|
The policy database is corrupt. The returned policy information is not valid for the given class. |
Remarks
The POLICY_TRUST_ADMIN access type is required to set domain information to the Policy object. For more information, see Policy Object Access Rights.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | ntsecapi.h |
Library | Advapi32.lib |
DLL | Advapi32.dll |