Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
badcabc1
Commit
badcabc1
authored
Nov 02, 2017
by
Michael Müller
Committed by
Alexandre Julliard
Nov 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Added a stub for LsaLookupPrivilegeDisplayName().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2c8427e0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
advapi32.spec
dlls/advapi32/advapi32.spec
+1
-1
lsa.c
dlls/advapi32/lsa.c
+18
-0
ntlsa.h
include/ntlsa.h
+2
-0
No files found.
dlls/advapi32/advapi32.spec
View file @
badcabc1
...
...
@@ -468,7 +468,7 @@
# @ stub LsaICLookupSidsWithCreds
@ stdcall LsaLookupNames(long long ptr ptr ptr)
@ stdcall LsaLookupNames2(ptr long long ptr ptr ptr)
@ st
ub LsaLookupPrivilegeDisplayName
@ st
dcall LsaLookupPrivilegeDisplayName(long ptr ptr ptr)
@ stdcall LsaLookupPrivilegeName(long ptr ptr)
# @ stub LsaLookupPrivilegeValue
@ stdcall LsaLookupSids(ptr long ptr ptr ptr)
...
...
dlls/advapi32/lsa.c
View file @
badcabc1
...
...
@@ -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
;
}
include/ntlsa.h
View file @
badcabc1
...
...
@@ -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
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment