Export (0) Print
Expand All
Expand Minimize

LsaQueryDomainInformationPolicy function

The LsaQueryDomainInformationPolicy function retrieves domain information from the Policy object.

Syntax


NTSTATUS NTAPI LsaQueryDomainInformationPolicy (
  _In_   LSA_HANDLE PolicyHandle,
  _In_   POLICY_DOMAIN_INFORMATION_CLASS InformationClass,
  _Out_  PVOID *Buffer
);

Parameters

PolicyHandle [in]

A handle to the Policy object for the system.

InformationClass [in]

POLICY_DOMAIN_INFORMATION_CLASS enumeration that specifies the information to be returned from the Policy object. The following table shows the possible values.

ValueMeaning
PolicyDomainEfsInformation

The information is for Encrypting File System.

PolicyDomainKerberosTicketInformation

The information is for a Kerberos ticket.

 

Buffer [out]

Pointer to a buffer that receives the requested information.

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/valueDescription
STATUS_INTERNAL_DB_CORRUPTION

The policy database is corrupt. The returned policy information is not valid for the given class.

 

Remarks

The POLICY_VIEW_LOCAL_INFORMATION access type is required to retrieve domain information from the Policy object. For more information, see Policy Object Access Rights.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Ntsecapi.h

Library

Advapi32.lib

DLL

Advapi32.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft