Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
caf66f0f
Commit
caf66f0f
authored
Sep 24, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Sep 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Implement LsaLookupSids.
parent
55230ba6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
lsa.c
dlls/advapi32/lsa.c
+42
-1
No files found.
dlls/advapi32/lsa.c
View file @
caf66f0f
...
...
@@ -408,9 +408,50 @@ NTSTATUS WINAPI LsaLookupSids(
OUT
PLSA_REFERENCED_DOMAIN_LIST
*
ReferencedDomains
,
OUT
PLSA_TRANSLATED_NAME
*
Names
)
{
FIXME
(
"(%p,%u,%p,%p,%p) stub
\n
"
,
PolicyHandle
,
Count
,
Sids
,
ULONG
i
,
mapped
,
size
;
ULONG
name_size
,
domain_size
;
SID_NAME_USE
use
;
TRACE
(
"(%p,%u,%p,%p,%p) stub
\n
"
,
PolicyHandle
,
Count
,
Sids
,
ReferencedDomains
,
Names
);
size
=
sizeof
(
LSA_TRANSLATED_NAME
)
*
Count
;
if
(
!
(
*
Names
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
)
))
return
STATUS_NO_MEMORY
;
if
(
!
(
*
ReferencedDomains
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
LSA_REFERENCED_DOMAIN_LIST
))
))
{
HeapFree
(
GetProcessHeap
(),
0
,
*
Names
);
return
STATUS_NO_MEMORY
;
}
(
*
ReferencedDomains
)
->
Entries
=
0
;
(
*
ReferencedDomains
)
->
Domains
=
NULL
;
mapped
=
0
;
for
(
i
=
0
;
i
<
Count
;
i
++
)
{
name_size
=
domain_size
=
0
;
(
*
Names
)[
i
].
Use
=
SidTypeUnknown
;
(
*
Names
)[
i
].
DomainIndex
=
-
1
;
(
*
Names
)[
i
].
Name
.
Length
=
0
;
(
*
Names
)[
i
].
Name
.
MaximumLength
=
0
;
(
*
Names
)[
i
].
Name
.
Buffer
=
NULL
;
if
(
LookupAccountSidW
(
NULL
,
Sids
[
i
],
NULL
,
&
name_size
,
NULL
,
&
domain_size
,
&
use
))
{
if
(
domain_size
)
FIXME
(
"domains not handled
\n
"
);
mapped
++
;
domain_size
=
0
;
(
*
Names
)[
i
].
Use
=
use
;
(
*
Names
)[
i
].
Name
.
Length
=
name_size
*
sizeof
(
WCHAR
);
(
*
Names
)[
i
].
Name
.
MaximumLength
=
name_size
*
sizeof
(
WCHAR
);
(
*
Names
)[
i
].
Name
.
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
name_size
*
sizeof
(
WCHAR
));
LookupAccountSidW
(
NULL
,
Sids
[
i
],
(
*
Names
)[
i
].
Name
.
Buffer
,
&
name_size
,
NULL
,
&
domain_size
,
&
use
);
}
}
TRACE
(
"mapped %u out of %u
\n
"
,
mapped
,
Count
);
if
(
mapped
==
Count
)
return
STATUS_SUCCESS
;
if
(
mapped
)
return
STATUS_SOME_NOT_MAPPED
;
return
STATUS_NONE_MAPPED
;
}
...
...
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