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
fe3669e8
Commit
fe3669e8
authored
Nov 12, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 12, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32: Move NetBios functions to netbios.c.
parent
fa9fec61
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
46 deletions
+46
-46
netapi32.c
dlls/netapi32/netapi32.c
+1
-46
netbios.c
dlls/netapi32/netbios.c
+45
-0
No files found.
dlls/netapi32/netapi32.c
View file @
fe3669e8
...
...
@@ -23,7 +23,7 @@
#include "lmat.h"
#include "netbios.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
net
bios
);
WINE_DEFAULT_DEBUG_CHANNEL
(
net
api32
);
BOOL
NETAPI_IsLocalComputer
(
LMCSTR
ServerName
);
...
...
@@ -179,51 +179,6 @@ NET_API_STATUS WINAPI NetStatisticsGet(LMSTR server, LMSTR service,
return
NERR_InternalError
;
}
DWORD
WINAPI
NetpNetBiosStatusToApiStatus
(
DWORD
nrc
)
{
DWORD
ret
;
switch
(
nrc
)
{
case
NRC_GOODRET
:
ret
=
NO_ERROR
;
break
;
case
NRC_NORES
:
ret
=
NERR_NoNetworkResource
;
break
;
case
NRC_DUPNAME
:
ret
=
NERR_AlreadyExists
;
break
;
case
NRC_NAMTFUL
:
ret
=
NERR_TooManyNames
;
break
;
case
NRC_ACTSES
:
ret
=
NERR_DeleteLater
;
break
;
case
NRC_REMTFUL
:
ret
=
ERROR_REM_NOT_LIST
;
break
;
case
NRC_NOCALL
:
ret
=
NERR_NameNotFound
;
break
;
case
NRC_NOWILD
:
ret
=
ERROR_INVALID_PARAMETER
;
break
;
case
NRC_INUSE
:
ret
=
NERR_DuplicateName
;
break
;
case
NRC_NAMERR
:
ret
=
ERROR_INVALID_PARAMETER
;
break
;
case
NRC_NAMCONF
:
ret
=
NERR_DuplicateName
;
break
;
default:
ret
=
NERR_NetworkError
;
}
return
ret
;
}
NET_API_STATUS
WINAPI
NetUseEnum
(
LMSTR
server
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxsize
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resumehandle
)
{
...
...
dlls/netapi32/netbios.c
View file @
fe3669e8
...
...
@@ -858,3 +858,48 @@ UCHAR WINAPI Netbios(PNCB ncb)
TRACE
(
"returning 0x%02x
\n
"
,
ret
);
return
ret
;
}
DWORD
WINAPI
NetpNetBiosStatusToApiStatus
(
DWORD
nrc
)
{
DWORD
ret
;
switch
(
nrc
)
{
case
NRC_GOODRET
:
ret
=
NO_ERROR
;
break
;
case
NRC_NORES
:
ret
=
NERR_NoNetworkResource
;
break
;
case
NRC_DUPNAME
:
ret
=
NERR_AlreadyExists
;
break
;
case
NRC_NAMTFUL
:
ret
=
NERR_TooManyNames
;
break
;
case
NRC_ACTSES
:
ret
=
NERR_DeleteLater
;
break
;
case
NRC_REMTFUL
:
ret
=
ERROR_REM_NOT_LIST
;
break
;
case
NRC_NOCALL
:
ret
=
NERR_NameNotFound
;
break
;
case
NRC_NOWILD
:
ret
=
ERROR_INVALID_PARAMETER
;
break
;
case
NRC_INUSE
:
ret
=
NERR_DuplicateName
;
break
;
case
NRC_NAMERR
:
ret
=
ERROR_INVALID_PARAMETER
;
break
;
case
NRC_NAMCONF
:
ret
=
NERR_DuplicateName
;
break
;
default:
ret
=
NERR_NetworkError
;
}
return
ret
;
}
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