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
eb8264ba
Commit
eb8264ba
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: Merge share.c into netapi32.c.
parent
a746b826
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
107 additions
and
129 deletions
+107
-129
Makefile.in
dlls/netapi32/Makefile.in
+0
-1
netapi32.c
dlls/netapi32/netapi32.c
+107
-0
share.c
dlls/netapi32/share.c
+0
-128
No files found.
dlls/netapi32/Makefile.in
View file @
eb8264ba
...
...
@@ -13,7 +13,6 @@ C_SRCS = \
nbt.c
\
netapi32.c
\
netbios.c
\
share.c
\
wksta.c
@MAKE_DLL_RULES@
dlls/netapi32/netapi32.c
View file @
eb8264ba
/* Copyright 2001 Mike McCormack
* Copyright 2002 Andriy Palamarchuk
* Copyright 2003 Juan Lang
* Copyright 2006 Paul Vriens
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -277,3 +278,109 @@ NET_API_STATUS WINAPI NetApiBufferSize(LPVOID Buffer, LPDWORD ByteCount)
return
NERR_Success
;
}
/************************************************************
* NetSessionEnum (NETAPI32.@)
*
* PARAMS
* servername [I] Pointer to a string with the name of the server
* UncClientName [I] Pointer to a string with the name of the session
* username [I] Pointer to a string with the name of the user
* level [I] Data information level
* bufptr [O] Buffer to the data
* prefmaxlen [I] Preferred maximum length of the data
* entriesread [O] Pointer to the number of entries enumerated
* totalentries [O] Pointer to the possible number of entries
* resume_handle [I/O] Pointer to a handle for subsequent searches
*
* RETURNS
* If successful, the function returns NERR_Success
* On failure it returns:
* ERROR_ACCESS_DENIED User has no access to the requested information
* ERROR_INVALID_LEVEL Value of 'level' is not correct
* ERROR_INVALID_PARAMETER Wrong parameter
* ERROR_MORE_DATA Need a larger buffer
* ERROR_NOT_ENOUGH_MEMORY Not enough memory
* NERR_ClientNameNotFound A session does not exist on a given computer
* NERR_InvalidComputer Invalid computer name
* NERR_UserNotFound User name could not be found.
*/
NET_API_STATUS
WINAPI
NetSessionEnum
(
LMSTR
servername
,
LMSTR
UncClientName
,
LMSTR
username
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
{
FIXME
(
"Stub (%s %s %s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
UncClientName
),
debugstr_w
(
username
),
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
resume_handle
);
return
NERR_Success
;
}
/************************************************************
* NetShareEnum (NETAPI32.@)
*
* PARAMS
* servername [I] Pointer to a string with the name of the server
* level [I] Data information level
* bufptr [O] Buffer to the data
* prefmaxlen [I] Preferred maximum length of the data
* entriesread [O] Pointer to the number of entries enumerated
* totalentries [O] Pointer to the possible number of entries
* resume_handle [I/O] Pointer to a handle for subsequent searches
*
* RETURNS
* If successful, the function returns NERR_Success
* On failure it returns a system error code (FIXME: find out which)
*
*/
NET_API_STATUS
WINAPI
NetShareEnum
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
{
FIXME
(
"Stub (%s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
resume_handle
);
return
ERROR_NOT_SUPPORTED
;
}
/************************************************************
* NetShareDel (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetShareDel
(
LMSTR
servername
,
LMSTR
netname
,
DWORD
reserved
)
{
FIXME
(
"Stub (%s %s %d)
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
netname
),
reserved
);
return
NERR_Success
;
}
/************************************************************
* NetShareGetInfo (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetShareGetInfo
(
LMSTR
servername
,
LMSTR
netname
,
DWORD
level
,
LPBYTE
*
bufptr
)
{
FIXME
(
"Stub (%s %s %d %p)
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
netname
),
level
,
bufptr
);
return
NERR_NetNameNotFound
;
}
/************************************************************
* NetShareAdd (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetShareAdd
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
buf
,
LPDWORD
parm_err
)
{
FIXME
(
"Stub (%s %d %p %p)
\n
"
,
debugstr_w
(
servername
),
level
,
buf
,
parm_err
);
return
ERROR_NOT_SUPPORTED
;
}
/************************************************************
* NetFileEnum (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetFileEnum
(
LPWSTR
ServerName
,
LPWSTR
BasePath
,
LPWSTR
UserName
,
DWORD
Level
,
LPBYTE
*
BufPtr
,
DWORD
PrefMaxLen
,
LPDWORD
EntriesRead
,
LPDWORD
TotalEntries
,
PDWORD_PTR
ResumeHandle
)
{
FIXME
(
"(%s, %s, %s, %u): stub
\n
"
,
debugstr_w
(
ServerName
),
debugstr_w
(
BasePath
),
debugstr_w
(
UserName
),
Level
);
return
ERROR_NOT_SUPPORTED
;
}
dlls/netapi32/share.c
deleted
100644 → 0
View file @
a746b826
/* Copyright 2006 Paul Vriens
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "wine/debug.h"
#include "lm.h"
#include "winerror.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
share
);
/************************************************************
* NetSessionEnum (NETAPI32.@)
*
* PARAMS
* servername [I] Pointer to a string with the name of the server
* UncClientName [I] Pointer to a string with the name of the session
* username [I] Pointer to a string with the name of the user
* level [I] Data information level
* bufptr [O] Buffer to the data
* prefmaxlen [I] Preferred maximum length of the data
* entriesread [O] Pointer to the number of entries enumerated
* totalentries [O] Pointer to the possible number of entries
* resume_handle [I/O] Pointer to a handle for subsequent searches
*
* RETURNS
* If successful, the function returns NERR_Success
* On failure it returns:
* ERROR_ACCESS_DENIED User has no access to the requested information
* ERROR_INVALID_LEVEL Value of 'level' is not correct
* ERROR_INVALID_PARAMETER Wrong parameter
* ERROR_MORE_DATA Need a larger buffer
* ERROR_NOT_ENOUGH_MEMORY Not enough memory
* NERR_ClientNameNotFound A session does not exist on a given computer
* NERR_InvalidComputer Invalid computer name
* NERR_UserNotFound User name could not be found.
*/
NET_API_STATUS
WINAPI
NetSessionEnum
(
LMSTR
servername
,
LMSTR
UncClientName
,
LMSTR
username
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
{
FIXME
(
"Stub (%s %s %s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
UncClientName
),
debugstr_w
(
username
),
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
resume_handle
);
return
NERR_Success
;
}
/************************************************************
* NetShareEnum (NETAPI32.@)
*
* PARAMS
* servername [I] Pointer to a string with the name of the server
* level [I] Data information level
* bufptr [O] Buffer to the data
* prefmaxlen [I] Preferred maximum length of the data
* entriesread [O] Pointer to the number of entries enumerated
* totalentries [O] Pointer to the possible number of entries
* resume_handle [I/O] Pointer to a handle for subsequent searches
*
* RETURNS
* If successful, the function returns NERR_Success
* On failure it returns a system error code (FIXME: find out which)
*
*/
NET_API_STATUS
WINAPI
NetShareEnum
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
*
bufptr
,
DWORD
prefmaxlen
,
LPDWORD
entriesread
,
LPDWORD
totalentries
,
LPDWORD
resume_handle
)
{
FIXME
(
"Stub (%s %d %p %d %p %p %p)
\n
"
,
debugstr_w
(
servername
),
level
,
bufptr
,
prefmaxlen
,
entriesread
,
totalentries
,
resume_handle
);
return
ERROR_NOT_SUPPORTED
;
}
/************************************************************
* NetShareDel (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetShareDel
(
LMSTR
servername
,
LMSTR
netname
,
DWORD
reserved
)
{
FIXME
(
"Stub (%s %s %d)
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
netname
),
reserved
);
return
NERR_Success
;
}
/************************************************************
* NetShareGetInfo (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetShareGetInfo
(
LMSTR
servername
,
LMSTR
netname
,
DWORD
level
,
LPBYTE
*
bufptr
)
{
FIXME
(
"Stub (%s %s %d %p)
\n
"
,
debugstr_w
(
servername
),
debugstr_w
(
netname
),
level
,
bufptr
);
return
NERR_NetNameNotFound
;
}
/************************************************************
* NetShareAdd (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetShareAdd
(
LMSTR
servername
,
DWORD
level
,
LPBYTE
buf
,
LPDWORD
parm_err
)
{
FIXME
(
"Stub (%s %d %p %p)
\n
"
,
debugstr_w
(
servername
),
level
,
buf
,
parm_err
);
return
ERROR_NOT_SUPPORTED
;
}
/************************************************************
* NetFileEnum (NETAPI32.@)
*/
NET_API_STATUS
WINAPI
NetFileEnum
(
LPWSTR
ServerName
,
LPWSTR
BasePath
,
LPWSTR
UserName
,
DWORD
Level
,
LPBYTE
*
BufPtr
,
DWORD
PrefMaxLen
,
LPDWORD
EntriesRead
,
LPDWORD
TotalEntries
,
PDWORD_PTR
ResumeHandle
)
{
FIXME
(
"(%s, %s, %s, %u): stub
\n
"
,
debugstr_w
(
ServerName
),
debugstr_w
(
BasePath
),
debugstr_w
(
UserName
),
Level
);
return
ERROR_NOT_SUPPORTED
;
}
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