From: Vitaly Lipatov lav@etersoft.ru
--- dlls/advapi32/lsa.c | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-)
diff --git a/dlls/advapi32/lsa.c b/dlls/advapi32/lsa.c index b63519c0299..66a15420f90 100644 --- a/dlls/advapi32/lsa.c +++ b/dlls/advapi32/lsa.c @@ -62,6 +62,35 @@ static void dumpLsaAttributes(const LSA_OBJECT_ATTRIBUTES *oa) } }
+static LPCSTR string_InformationClass[] = +{ + "(null)", + "PolicyAuditLogInformation", + "PolicyAuditEventsInformation", + "PolicyPrimaryDomainInformation", + "PolicyPdAccountInformation", + "PolicyAccountDomainInformation", + "PolicyLsaServerRoleInformation", + "PolicyReplicaSourceInformation", + "PolicyDefaultQuotaInformation", + "PolicyModificationInformation", + "PolicyAuditFullSetInformation", + "PolicyAuditFullQueryInformation", + "PolicyDnsDomainInformation", + "PolicyDnsDomainInformationInt", + "PolicyLocalAccountDomainInformation", + "PolicyMachineAccountInformation", + "PolicyMachineAccountInformation2", + "PolicyLastEntry" +}; + +static LPCSTR debugstr_InformationClass(IN POLICY_INFORMATION_CLASS InformationClass) +{ + if (InformationClass >= ARRAY_SIZE(string_InformationClass)) + return "(unknown)"; + return string_InformationClass[InformationClass]; +} + static void* ADVAPI_GetDomainName(unsigned sz, unsigned ofs) { HKEY key; @@ -779,7 +808,7 @@ NTSTATUS WINAPI LsaQueryInformationPolicy( IN POLICY_INFORMATION_CLASS InformationClass, OUT PVOID *Buffer) { - TRACE("(%p,0x%08x,%p)\n", PolicyHandle, InformationClass, Buffer); + TRACE("(%p,%s(0x%08x),%p)\n", PolicyHandle, debugstr_InformationClass(InformationClass), InformationClass, Buffer);
if(!Buffer) return STATUS_INVALID_PARAMETER; switch (InformationClass) @@ -1016,7 +1045,7 @@ NTSTATUS WINAPI LsaSetInformationPolicy( IN POLICY_INFORMATION_CLASS InformationClass, IN PVOID Buffer) { - FIXME("(%p,0x%08x,%p) stub\n", PolicyHandle, InformationClass, Buffer); + FIXME("(%p,%s(0x%08x),%p) stub\n", PolicyHandle, debugstr_InformationClass(InformationClass), InformationClass, Buffer);
return STATUS_UNSUCCESSFUL; }