20 TRACE(
"(%p)\n", PolicyHandle);
45 *PolicyInformation =
NULL;
49 if (AuditLogInfo ==
NULL)
78 *PolicyInformation =
NULL;
88 TRACE(
"Attribute size: %lu\n", AttributeSize);
89 if (AttributeSize > 0)
92 if (AuditData ==
NULL)
110 if (AuditData ==
NULL)
113 p->MaximumAuditEventCount = 0;
114 p->EventAuditingOptions =
NULL;
122 if (
p->EventAuditingOptions ==
NULL)
128 memcpy(
p->EventAuditingOptions,
142 if (
p->EventAuditingOptions !=
NULL)
149 if (AuditData !=
NULL)
165 *PolicyInformation =
NULL;
182 if (AttributeSize > 0)
185 if (DomainName ==
NULL)
199 TRACE(
"PrimaryDomainName: %wZ\n", DomainName);
202 if (
p->Name.Buffer ==
NULL)
209 p->Name.Length = DomainName->
Length;
230 if (AttributeSize > 0)
272 *PolicyInformation =
NULL;
275 if (PdAccountInfo ==
NULL)
294 ULONG AttributeSize = 0;
297 *PolicyInformation =
NULL;
313 if (AttributeSize > 0)
316 if (DomainName ==
NULL)
330 TRACE(
"AccountDomainName: %wZ\n", DomainName);
333 if (
p->DomainName.Buffer ==
NULL)
340 p->DomainName.Length = DomainName->
Length;
361 if (AttributeSize > 0)
383 if (
p->DomainName.Buffer)
405 *PolicyInformation =
NULL;
409 if (ServerRoleInfo ==
NULL)
440 *PolicyInformation =
NULL;
453 *PolicyInformation =
NULL;
457 if (QuotaInfo ==
NULL)
485 *PolicyInformation =
NULL;
517 *PolicyInformation =
NULL;
521 if (AuditFullInfo ==
NULL)
550 *PolicyInformation =
NULL;
567 if (AttributeSize > 0)
570 if (DomainName ==
NULL)
584 TRACE(
"PrimaryDomainName: %wZ\n", DomainName);
587 if (
p->Name.Buffer ==
NULL)
594 p->Name.Length = DomainName->
Length;
615 if (AttributeSize > 0)
639 if (AttributeSize > 0)
642 if (DomainName ==
NULL)
656 TRACE(
"DNS Domain Name: %wZ\n", DomainName);
659 if (
p->DnsDomainName.Buffer ==
NULL)
666 p->DnsDomainName.Length = DomainName->
Length;
668 memcpy(
p->DnsDomainName.Buffer,
685 if (AttributeSize > 0)
688 if (DomainName ==
NULL)
702 TRACE(
"DNS Forest Name: %wZ\n", DomainName);
705 if (
p->DnsForestName.Buffer ==
NULL)
712 p->DnsForestName.Length = DomainName->
Length;
714 memcpy(
p->DnsForestName.Buffer,
723 AttributeSize =
sizeof(
GUID);
741 if (
p->DnsDomainName.Buffer)
744 if (
p->DnsForestName.Buffer)
763 *PolicyInformation =
NULL;
773 *PolicyInformation =
NULL;
802 Info->MaximumAuditEventCount *
sizeof(
DWORD);
807 if (AuditData ==
NULL)
814 Info->EventAuditingOptions,
815 Info->MaximumAuditEventCount *
sizeof(
DWORD));
847 Buffer->MaximumLength =
Info->Name.MaximumLength;
894 Buffer->MaximumLength =
Info->DomainName.MaximumLength;
982 if (AuditFullInfo ==
NULL)
1000 if (AuditFullInfo !=
NULL)
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define NT_SUCCESS(StatCode)
NTSTATUS LsapGetObjectAttribute(PLSA_DB_OBJECT DbObject, LPWSTR AttributeName, LPVOID AttributeData, PULONG AttributeSize)
NTSTATUS LsapOpenDbObject(IN PLSA_DB_OBJECT ParentObject, IN LPWSTR ContainerName, IN LPWSTR ObjectName, IN LSA_DB_OBJECT_TYPE ObjectType, IN ACCESS_MASK DesiredAccess, IN BOOLEAN Trusted, OUT PLSA_DB_OBJECT *DbObject)
NTSTATUS LsapSetObjectAttribute(PLSA_DB_OBJECT DbObject, LPWSTR AttributeName, LPVOID AttributeData, ULONG AttributeSize)
struct _LSAP_POLICY_AUDIT_EVENTS_DATA LSAP_POLICY_AUDIT_EVENTS_DATA
NTSTATUS LsarSetAccountDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_ACCOUNT_DOM_INFO Info)
NTSTATUS LsarSetReplicaSource(PLSA_DB_OBJECT PolicyObject, PPOLICY_LSA_REPLICA_SRCE_INFO Info)
NTSTATUS LsarSetDnsDomainInt(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_DNS_DOMAIN_INFO Info)
NTSTATUS LsarQueryDnsDomainInt(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarQueryAuditEvents(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarSetAuditEvents(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_AUDIT_EVENTS_INFO Info)
NTSTATUS LsarSetDefaultQuota(PLSA_DB_OBJECT PolicyObject, PPOLICY_DEFAULT_QUOTA_INFO Info)
NTSTATUS LsarQueryLocalAccountDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarQueryPrimaryDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarSetPrimaryDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_PRIMARY_DOM_INFO Info)
NTSTATUS LsarSetDnsDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_DNS_DOMAIN_INFO Info)
NTSTATUS LsarQueryReplicaSource(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarSetAuditLog(PLSA_DB_OBJECT PolicyObject, PPOLICY_AUDIT_LOG_INFO Info)
NTSTATUS LsarSetAuditFull(PLSA_DB_OBJECT PolicyObject, PPOLICY_AUDIT_FULL_QUERY_INFO Info)
NTSTATUS LsarSetLocalAccountDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_ACCOUNT_DOM_INFO Info)
NTSTATUS LsarQueryDnsDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS WINAPI LsaIOpenPolicyTrusted(OUT LSAPR_HANDLE *PolicyHandle)
NTSTATUS LsarQueryAccountDomain(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarQueryAuditFull(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarQueryServerRole(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarSetModification(PLSA_DB_OBJECT PolicyObject, PPOLICY_MODIFICATION_INFO Info)
NTSTATUS LsarQueryModification(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarQueryAuditLog(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarQueryDefaultQuota(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
NTSTATUS LsarSetServerRole(PLSA_DB_OBJECT PolicyObject, PPOLICY_LSA_SERVER_ROLE_INFO Info)
NTSTATUS LsarQueryPdAccount(PLSA_DB_OBJECT PolicyObject, PLSAPR_POLICY_INFORMATION *PolicyInformation)
struct _UNICODE_STRING UNICODE_STRING
_Must_inspect_result_ _In_ PFSRTL_PER_STREAM_CONTEXT Ptr
void *__RPC_USER MIDL_user_allocate(SIZE_T size)
void __RPC_USER MIDL_user_free(void *p)
#define memcpy(s1, s2, n)
union _LSAPR_POLICY_INFORMATION * PLSAPR_POLICY_INFORMATION
NTSYSAPI ULONG NTAPI RtlLengthSid(IN PSID Sid)
_In_ ULONG _In_ ULONG _In_ ULONG Length
struct _POLICY_MODIFICATION_INFO POLICY_MODIFICATION_INFO
struct _POLICY_AUDIT_FULL_QUERY_INFO POLICY_AUDIT_FULL_QUERY_INFO
struct _POLICY_DEFAULT_QUOTA_INFO POLICY_DEFAULT_QUOTA_INFO
struct _POLICY_AUDIT_LOG_INFO POLICY_AUDIT_LOG_INFO
struct _POLICY_LSA_SERVER_ROLE_INFO POLICY_LSA_SERVER_ROLE_INFO
@ PolicyServerRolePrimary
#define POLICY_ALL_ACCESS
#define STATUS_NOT_IMPLEMENTED
DWORD MaximumAuditEventCount
DWORD AuditEvents[POLICY_AUDIT_EVENT_TYPE_COUNT]
POLICY_LSA_SERVER_ROLE LsaServerRole
unsigned short MaximumLength
#define STATUS_INSUFFICIENT_RESOURCES
#define STATUS_OBJECT_NAME_NOT_FOUND
_Must_inspect_result_ _In_ WDFCHILDLIST _In_ PWDF_CHILD_LIST_ITERATOR _Out_ WDFDEVICE _Inout_opt_ PWDF_CHILD_RETRIEVE_INFO Info