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
f3e59a3d
Commit
f3e59a3d
authored
Dec 12, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Improve stub for NetLocalGroupGetMembers a bit to return current user.
parent
1e3d65db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
local_group.c
dlls/netapi32/local_group.c
+33
-0
No files found.
dlls/netapi32/local_group.c
View file @
f3e59a3d
...
...
@@ -166,6 +166,39 @@ NET_API_STATUS WINAPI NetLocalGroupGetMembers(
FIXME
(
"(%s %s %d %p %d, %p %p %p) stub!
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
localgroupname
),
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
resumehandle
);
if
(
level
==
3
)
{
WCHAR
userName
[
MAX_COMPUTERNAME_LENGTH
+
1
];
DWORD
userNameLen
;
DWORD
len
,
needlen
;
PLOCALGROUP_MEMBERS_INFO_3
ptr
;
/* still a stub, current user is belonging to all groups */
*
totalentries
=
1
;
*
entriesread
=
0
;
userNameLen
=
MAX_COMPUTERNAME_LENGTH
+
1
;
GetUserNameW
(
userName
,
&
userNameLen
);
needlen
=
sizeof
(
LOCALGROUP_MEMBERS_INFO_3
)
+
(
userNameLen
+
2
)
*
sizeof
(
WCHAR
);
if
(
prefmaxlen
!=
MAX_PREFERRED_LENGTH
)
len
=
min
(
prefmaxlen
,
needlen
);
else
len
=
needlen
;
NetApiBufferAllocate
(
len
,
(
LPVOID
*
)
bufptr
);
if
(
len
<
needlen
)
return
ERROR_MORE_DATA
;
ptr
=
(
PLOCALGROUP_MEMBERS_INFO_3
)
*
bufptr
;
ptr
->
lgrmi3_domainandname
=
(
LPWSTR
)(
*
bufptr
+
sizeof
(
LOCALGROUP_MEMBERS_INFO_3
));
lstrcpyW
(
ptr
->
lgrmi3_domainandname
,
userName
);
*
entriesread
=
1
;
}
return
NERR_Success
;
}
...
...
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