advapi32: Added a stub for LsaLookupPrivilegeDisplayName().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Müller 2017-11-02 23:56:20 +03:00 committed by Alexandre Julliard
parent 2c8427e0dc
commit badcabc188
3 changed files with 21 additions and 1 deletions

View File

@ -468,7 +468,7 @@
# @ stub LsaICLookupSidsWithCreds # @ stub LsaICLookupSidsWithCreds
@ stdcall LsaLookupNames(long long ptr ptr ptr) @ stdcall LsaLookupNames(long long ptr ptr ptr)
@ stdcall LsaLookupNames2(ptr long long ptr ptr ptr) @ stdcall LsaLookupNames2(ptr long long ptr ptr ptr)
@ stub LsaLookupPrivilegeDisplayName @ stdcall LsaLookupPrivilegeDisplayName(long ptr ptr ptr)
@ stdcall LsaLookupPrivilegeName(long ptr ptr) @ stdcall LsaLookupPrivilegeName(long ptr ptr)
# @ stub LsaLookupPrivilegeValue # @ stub LsaLookupPrivilegeValue
@ stdcall LsaLookupSids(ptr long ptr ptr ptr) @ stdcall LsaLookupSids(ptr long ptr ptr ptr)

View File

@ -44,6 +44,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(advapi);
return FailureCode; \ return FailureCode; \
} }
static LPCSTR debugstr_us( const UNICODE_STRING *us )
{
if (!us) return "(null)";
return debugstr_wn(us->Buffer, us->Length / sizeof(WCHAR));
}
static void dumpLsaAttributes(const LSA_OBJECT_ATTRIBUTES *oa) static void dumpLsaAttributes(const LSA_OBJECT_ATTRIBUTES *oa)
{ {
if (oa) if (oa)
@ -1006,3 +1012,15 @@ NTSTATUS WINAPI LsaLookupPrivilegeName(LSA_HANDLE handle, LUID *luid, LSA_UNICOD
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
/******************************************************************************
* LsaLookupPrivilegeDisplayName [ADVAPI32.@]
*
*/
NTSTATUS WINAPI LsaLookupPrivilegeDisplayName(LSA_HANDLE handle, LSA_UNICODE_STRING *name,
LSA_UNICODE_STRING **display_name, SHORT *language)
{
FIXME("(%p, %s, %p, %p)\n", handle, debugstr_us(name), display_name, language);
return STATUS_NO_SUCH_PRIVILEGE;
}

View File

@ -16,4 +16,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/ */
NTSTATUS WINAPI LsaLookupPrivilegeDisplayName(LSA_HANDLE policy, LSA_UNICODE_STRING *name,
LSA_UNICODE_STRING **display_name, SHORT *language);
NTSTATUS WINAPI LsaLookupPrivilegeName(LSA_HANDLE policy, LUID *value, LSA_UNICODE_STRING **name); NTSTATUS WINAPI LsaLookupPrivilegeName(LSA_HANDLE policy, LUID *value, LSA_UNICODE_STRING **name);