Add missing TRACE messages.

svn path=/trunk/; revision=72222
This commit is contained in:
Eric Kohl 2016-08-14 16:16:40 +00:00
parent 21f8a27469
commit deec91b6c2

View file

@ -70,7 +70,7 @@ NTSTATUS WINAPI LsarClose(
PLSA_DB_OBJECT DbObject; PLSA_DB_OBJECT DbObject;
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
TRACE("0x%p\n", ObjectHandle); TRACE("LsarClose(%p)\n", ObjectHandle);
// RtlEnterCriticalSection(&PolicyHandleTableLock); // RtlEnterCriticalSection(&PolicyHandleTableLock);
@ -94,6 +94,8 @@ NTSTATUS WINAPI LsarClose(
NTSTATUS WINAPI LsarDelete( NTSTATUS WINAPI LsarDelete(
LSAPR_HANDLE ObjectHandle) LSAPR_HANDLE ObjectHandle)
{ {
TRACE("LsarDelete(%p)\n", ObjectHandle);
return LsarDeleteObject(&ObjectHandle); return LsarDeleteObject(&ObjectHandle);
} }
@ -286,7 +288,8 @@ NTSTATUS WINAPI LsarOpenPolicy(
PLSA_DB_OBJECT PolicyObject; PLSA_DB_OBJECT PolicyObject;
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarOpenPolicy called!\n"); TRACE("LsarOpenPolicy(%S %p %lx %p)\n",
SystemName, ObjectAttributes, DesiredAccess, PolicyHandle);
RtlEnterCriticalSection(&PolicyHandleTableLock); RtlEnterCriticalSection(&PolicyHandleTableLock);
@ -656,6 +659,9 @@ NTSTATUS WINAPI LsarCreateAccount(
PLSA_DB_OBJECT AccountObject = NULL; PLSA_DB_OBJECT AccountObject = NULL;
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
TRACE("LsarCreateAccount(%p %p %lx %p)\n",
PolicyHandle, AccountSid, DesiredAccess, AccountHandle);
/* Validate the AccountSid */ /* Validate the AccountSid */
if (!RtlValidSid(AccountSid)) if (!RtlValidSid(AccountSid))
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
@ -706,8 +712,8 @@ NTSTATUS WINAPI LsarEnumerateAccounts(
ULONG i; ULONG i;
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
TRACE("(%p %p %p %lu)\n", PolicyHandle, EnumerationContext, TRACE("LsarEnumerateAccount(%p %p %p %lu)\n",
EnumerationBuffer, PreferedMaximumLength); PolicyHandle, EnumerationContext, EnumerationBuffer, PreferedMaximumLength);
if (EnumerationContext == NULL || if (EnumerationContext == NULL ||
EnumerationBuffer == NULL) EnumerationBuffer == NULL)
@ -951,7 +957,7 @@ NTSTATUS WINAPI LsarLookupNames(
ULONG i; ULONG i;
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %lu %p %p %p %d %p)\n", TRACE("LsarLookupNames(%p %lu %p %p %p %d %p)\n",
PolicyHandle, Count, Names, ReferencedDomains, TranslatedSids, PolicyHandle, Count, Names, ReferencedDomains, TranslatedSids,
LookupLevel, MappedCount); LookupLevel, MappedCount);
@ -1012,7 +1018,7 @@ NTSTATUS WINAPI LsarLookupSids(
ULONG i; ULONG i;
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %p %p %p %d %p)\n", TRACE("LsarLookupSids(%p %p %p %p %d %p)\n",
PolicyHandle, SidEnumBuffer, ReferencedDomains, TranslatedNames, PolicyHandle, SidEnumBuffer, ReferencedDomains, TranslatedNames,
LookupLevel, MappedCount); LookupLevel, MappedCount);
@ -1074,6 +1080,9 @@ NTSTATUS WINAPI LsarCreateSecret(
ULONG SecretSdSize; ULONG SecretSdSize;
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
TRACE("LsarCreateSecret(%p %wZ %lx %p)\n",
PolicyHandle, SecretName, DesiredAccess, SecretHandle);
/* Validate the PolicyHandle */ /* Validate the PolicyHandle */
Status = LsapValidateDbObject(PolicyHandle, Status = LsapValidateDbObject(PolicyHandle,
LsaDbPolicyObject, LsaDbPolicyObject,
@ -1211,6 +1220,9 @@ NTSTATUS WINAPI LsarOpenAccount(
PLSA_DB_OBJECT PolicyObject; PLSA_DB_OBJECT PolicyObject;
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarOpenAccount(%p %p %lx %p)\n",
PolicyHandle, AccountSid, DesiredAccess, AccountHandle);
/* Validate the AccountSid */ /* Validate the AccountSid */
if (!RtlValidSid(AccountSid)) if (!RtlValidSid(AccountSid))
return STATUS_INVALID_PARAMETER; return STATUS_INVALID_PARAMETER;
@ -1245,6 +1257,9 @@ NTSTATUS WINAPI LsarEnumeratePrivilegesAccount(
PLSAPR_PRIVILEGE_SET PrivilegeSet = NULL; PLSAPR_PRIVILEGE_SET PrivilegeSet = NULL;
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarEnumeratePrivilegesAccount(%p %p)\n",
AccountHandle, Privileges);
*Privileges = NULL; *Privileges = NULL;
/* Validate the AccountHandle */ /* Validate the AccountHandle */
@ -1303,6 +1318,9 @@ NTSTATUS WINAPI LsarAddPrivilegesToAccount(
BOOL bFound; BOOL bFound;
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarAddPrivilegesToAccount(%p %p)\n",
AccountHandle, Privileges);
/* Validate the AccountHandle */ /* Validate the AccountHandle */
Status = LsapValidateDbObject(AccountHandle, Status = LsapValidateDbObject(AccountHandle,
LsaDbAccountObject, LsaDbAccountObject,
@ -1455,7 +1473,8 @@ NTSTATUS WINAPI LsarRemovePrivilegesFromAccount(
BOOL bFound; BOOL bFound;
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %u %p)\n", AccountHandle, AllPrivileges, Privileges); TRACE("LsarRemovePrivilegesFromAccount(%p %u %p)\n",
AccountHandle, AllPrivileges, Privileges);
/* */ /* */
if ((AllPrivileges == FALSE && Privileges == NULL) || if ((AllPrivileges == FALSE && Privileges == NULL) ||
@ -1605,7 +1624,8 @@ NTSTATUS WINAPI LsarGetQuotasForAccount(
ULONG Size; ULONG Size;
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %p)\n", AccountHandle, QuotaLimits); TRACE("LsarGetQuotasForAccount(%p %p)\n",
AccountHandle, QuotaLimits);
/* Validate the account handle */ /* Validate the account handle */
Status = LsapValidateDbObject(AccountHandle, Status = LsapValidateDbObject(AccountHandle,
@ -1638,7 +1658,8 @@ NTSTATUS WINAPI LsarSetQuotasForAccount(
ULONG Size; ULONG Size;
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %p)\n", AccountHandle, QuotaLimits); TRACE("LsarSetQuotasForAccount(%p %p)\n",
AccountHandle, QuotaLimits);
/* Validate the account handle */ /* Validate the account handle */
Status = LsapValidateDbObject(AccountHandle, Status = LsapValidateDbObject(AccountHandle,
@ -1698,6 +1719,9 @@ NTSTATUS WINAPI LsarGetSystemAccessAccount(
ULONG Size = sizeof(ACCESS_MASK); ULONG Size = sizeof(ACCESS_MASK);
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarGetSystemAccessAccount(%p %p)\n",
AccountHandle, SystemAccess);
/* Validate the account handle */ /* Validate the account handle */
Status = LsapValidateDbObject(AccountHandle, Status = LsapValidateDbObject(AccountHandle,
LsaDbAccountObject, LsaDbAccountObject,
@ -1727,6 +1751,9 @@ NTSTATUS WINAPI LsarSetSystemAccessAccount(
PLSA_DB_OBJECT AccountObject; PLSA_DB_OBJECT AccountObject;
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarSetSystemAccessAccount(%p %lx)\n",
AccountHandle, SystemAccess);
/* Validate the account handle */ /* Validate the account handle */
Status = LsapValidateDbObject(AccountHandle, Status = LsapValidateDbObject(AccountHandle,
LsaDbAccountObject, LsaDbAccountObject,
@ -1793,6 +1820,9 @@ NTSTATUS WINAPI LsarOpenSecret(
PLSA_DB_OBJECT SecretObject = NULL; PLSA_DB_OBJECT SecretObject = NULL;
NTSTATUS Status = STATUS_SUCCESS; NTSTATUS Status = STATUS_SUCCESS;
TRACE("LsarOpenSecret(%p %wZ %lx %p)\n",
PolicyHandle, SecretName, DesiredAccess, SecretHandle);
/* Validate the PolicyHandle */ /* Validate the PolicyHandle */
Status = LsapValidateDbObject(PolicyHandle, Status = LsapValidateDbObject(PolicyHandle,
LsaDbPolicyObject, LsaDbPolicyObject,
@ -3012,6 +3042,9 @@ NTSTATUS WINAPI LsarRetrievePrivateData(
PBYTE CurrentValue = NULL; PBYTE CurrentValue = NULL;
NTSTATUS Status; NTSTATUS Status;
TRACE("LsarRetrievePrivateData(%p %wZ %p)\n",
PolicyHandle, KeyName, EncryptedData);
/* Validate the SecretHandle */ /* Validate the SecretHandle */
Status = LsapValidateDbObject(PolicyHandle, Status = LsapValidateDbObject(PolicyHandle,
LsaDbPolicyObject, LsaDbPolicyObject,
@ -3262,7 +3295,7 @@ NTSTATUS WINAPI LsarLookupSids2(
{ {
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %p %p %p %d %p %lu %lu)\n", TRACE("LsarLookupSids2(%p %p %p %p %d %p %lu %lu)\n",
PolicyHandle, SidEnumBuffer, ReferencedDomains, TranslatedNames, PolicyHandle, SidEnumBuffer, ReferencedDomains, TranslatedNames,
LookupLevel, MappedCount, LookupOptions, ClientRevision); LookupLevel, MappedCount, LookupOptions, ClientRevision);
@ -3300,7 +3333,7 @@ NTSTATUS WINAPI LsarLookupNames2(
ULONG i; ULONG i;
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %lu %p %p %p %d %p %lu %lu)\n", TRACE("LsarLookupNames2(%p %lu %p %p %p %d %p %lu %lu)\n",
PolicyHandle, Count, Names, ReferencedDomains, TranslatedSids, PolicyHandle, Count, Names, ReferencedDomains, TranslatedSids,
LookupLevel, MappedCount, LookupOptions, ClientRevision); LookupLevel, MappedCount, LookupOptions, ClientRevision);
@ -3448,7 +3481,7 @@ NTSTATUS WINAPI LsarLookupNames3(
{ {
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %lu %p %p %p %d %p %lu %lu)\n", TRACE("LsarLookupNames3(%p %lu %p %p %p %d %p %lu %lu)\n",
PolicyHandle, Count, Names, ReferencedDomains, TranslatedSids, PolicyHandle, Count, Names, ReferencedDomains, TranslatedSids,
LookupLevel, MappedCount, LookupOptions, ClientRevision); LookupLevel, MappedCount, LookupOptions, ClientRevision);
@ -3556,7 +3589,7 @@ NTSTATUS WINAPI LsarLookupSids3(
{ {
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %p %p %p %d %p %lu %lu)\n", TRACE("LsarLookupSids3(%p %p %p %p %d %p %lu %lu)\n",
PolicyHandle, SidEnumBuffer, ReferencedDomains, TranslatedNames, PolicyHandle, SidEnumBuffer, ReferencedDomains, TranslatedNames,
LookupLevel, MappedCount, LookupOptions, ClientRevision); LookupLevel, MappedCount, LookupOptions, ClientRevision);
@ -3592,7 +3625,7 @@ NTSTATUS WINAPI LsarLookupNames4(
{ {
NTSTATUS Status; NTSTATUS Status;
TRACE("(%p %lu %p %p %p %d %p %lu %lu)\n", TRACE("LsarLookupNames4(%p %lu %p %p %p %d %p %lu %lu)\n",
RpcHandle, Count, Names, ReferencedDomains, TranslatedSids, RpcHandle, Count, Names, ReferencedDomains, TranslatedSids,
LookupLevel, MappedCount, LookupOptions, ClientRevision); LookupLevel, MappedCount, LookupOptions, ClientRevision);