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
4eff1879
Commit
4eff1879
authored
Apr 06, 2015
by
Bruno Jesus
Committed by
Alexandre Julliard
Apr 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Better stub NetStatisticsGet().
parent
a57c91ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
2 deletions
+45
-2
netapi32.c
dlls/netapi32/netapi32.c
+45
-2
No files found.
dlls/netapi32/netapi32.c
View file @
4eff1879
...
...
@@ -1083,8 +1083,51 @@ NET_API_STATUS WINAPI NetStatisticsGet(LMSTR server, LMSTR service,
DWORD
level
,
DWORD
options
,
LPBYTE
*
bufptr
)
{
TRACE
(
"(%p, %p, %d, %d, %p)
\n
"
,
server
,
service
,
level
,
options
,
bufptr
);
return
NERR_InternalError
;
int
res
;
static
const
WCHAR
SERVICE_WORKSTATION
[]
=
{
'L'
,
'a'
,
'n'
,
'm'
,
'a'
,
'n'
,
'W'
,
'o'
,
'r'
,
'k'
,
's'
,
't'
,
'a'
,
't'
,
'i'
,
'o'
,
'n'
,
'\0'
};
static
const
WCHAR
SERVICE_SERVER
[]
=
{
'L'
,
'a'
,
'n'
,
'm'
,
'a'
,
'n'
,
'S'
,
'e'
,
'r'
,
'v'
,
'e'
,
'r'
,
'\0'
};
union
{
STAT_WORKSTATION_0
workst
;
STAT_SERVER_0
server
;
}
*
stat
;
void
*
dataptr
;
TRACE
(
"(server %s, service %s, level %d, options %d, buffer %p): stub
\n
"
,
debugstr_w
(
server
),
debugstr_w
(
service
),
level
,
options
,
bufptr
);
res
=
NetApiBufferAllocate
(
sizeof
(
*
stat
),
&
dataptr
);
if
(
res
!=
NERR_Success
)
return
res
;
res
=
NERR_InternalError
;
stat
=
dataptr
;
switch
(
level
)
{
case
0
:
if
(
!
lstrcmpW
(
service
,
SERVICE_WORKSTATION
))
{
/* Fill the struct STAT_WORKSTATION_0 properly */
memset
(
&
stat
->
workst
,
0
,
sizeof
(
stat
->
workst
));
res
=
NERR_Success
;
}
else
if
(
!
lstrcmpW
(
service
,
SERVICE_SERVER
))
{
/* Fill the struct STAT_SERVER_0 properly */
memset
(
&
stat
->
server
,
0
,
sizeof
(
stat
->
server
));
res
=
NERR_Success
;
}
break
;
}
if
(
res
!=
NERR_Success
)
NetApiBufferFree
(
dataptr
);
else
*
bufptr
=
dataptr
;
return
res
;
}
NET_API_STATUS
WINAPI
NetUseEnum
(
LMSTR
server
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxsize
,
...
...
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