Commit badcabc1 authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

advapi32: Added a stub for LsaLookupPrivilegeDisplayName().

parent 2c8427e0
......@@ -468,7 +468,7 @@
# @ stub LsaICLookupSidsWithCreds
@ stdcall LsaLookupNames(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)
# @ stub LsaLookupPrivilegeValue
@ stdcall LsaLookupSids(ptr long ptr ptr ptr)
......
......@@ -44,6 +44,12 @@ WINE_DEFAULT_DEBUG_CHANNEL(advapi);
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)
{
if (oa)
......@@ -1006,3 +1012,15 @@ NTSTATUS WINAPI LsaLookupPrivilegeName(LSA_HANDLE handle, LUID *luid, LSA_UNICOD
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;
}
......@@ -16,4 +16,6 @@
* 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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment