Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenshare.c
Go to the documentation of this file.
00001 /* Copyright 2006 Paul Vriens 00002 * 00003 * This library is free software; you can redistribute it and/or 00004 * modify it under the terms of the GNU Lesser General Public 00005 * License as published by the Free Software Foundation; either 00006 * version 2.1 of the License, or (at your option) any later version. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00016 */ 00017 00018 #include "wine/debug.h" 00019 #include "lm.h" 00020 #include "winerror.h" 00021 00022 WINE_DEFAULT_DEBUG_CHANNEL(share); 00023 00024 /************************************************************ 00025 * NetSessionEnum (NETAPI32.@) 00026 * 00027 * PARAMS 00028 * servername [I] Pointer to a string with the name of the server 00029 * UncClientName [I] Pointer to a string with the name of the session 00030 * username [I] Pointer to a string with the name of the user 00031 * level [I] Data information level 00032 * bufptr [O] Buffer to the data 00033 * prefmaxlen [I] Preferred maximum length of the data 00034 * entriesread [O] Pointer to the number of entries enumerated 00035 * totalentries [O] Pointer to the possible number of entries 00036 * resume_handle [I/O] Pointer to a handle for subsequent searches 00037 * 00038 * RETURNS 00039 * If successful, the function returns NERR_Success 00040 * On failure it returns: 00041 * ERROR_ACCESS_DENIED User has no access to the requested information 00042 * ERROR_INVALID_LEVEL Value of 'level' is not correct 00043 * ERROR_INVALID_PARAMETER Wrong parameter 00044 * ERROR_MORE_DATA Need a larger buffer 00045 * ERROR_NOT_ENOUGH_MEMORY Not enough memory 00046 * NERR_ClientNameNotFound A session does not exist on a given computer 00047 * NERR_InvalidComputer Invalid computer name 00048 * NERR_UserNotFound User name could not be found. 00049 */ 00050 NET_API_STATUS WINAPI NetSessionEnum(LMSTR servername, LMSTR UncClientName, 00051 LMSTR username, DWORD level, LPBYTE* bufptr, DWORD prefmaxlen, LPDWORD entriesread, 00052 LPDWORD totalentries, LPDWORD resume_handle) 00053 { 00054 FIXME("Stub (%s %s %s %d %p %d %p %p %p)\n", debugstr_w(servername), 00055 debugstr_w(UncClientName), debugstr_w(username), 00056 level, bufptr, prefmaxlen, entriesread, totalentries, resume_handle); 00057 00058 return NERR_Success; 00059 } 00060 00061 /************************************************************ 00062 * NetShareEnum (NETAPI32.@) 00063 * 00064 * PARAMS 00065 * servername [I] Pointer to a string with the name of the server 00066 * level [I] Data information level 00067 * bufptr [O] Buffer to the data 00068 * prefmaxlen [I] Preferred maximum length of the data 00069 * entriesread [O] Pointer to the number of entries enumerated 00070 * totalentries [O] Pointer to the possible number of entries 00071 * resume_handle [I/O] Pointer to a handle for subsequent searches 00072 * 00073 * RETURNS 00074 * If successful, the function returns NERR_Success 00075 * On failure it returns a system error code (FIXME: find out which) 00076 * 00077 */ 00078 NET_API_STATUS WINAPI NetShareEnum( LMSTR servername, DWORD level, LPBYTE* bufptr, 00079 DWORD prefmaxlen, LPDWORD entriesread, LPDWORD totalentries, LPDWORD resume_handle) 00080 { 00081 FIXME("Stub (%s %d %p %d %p %p %p)\n", debugstr_w(servername), level, bufptr, 00082 prefmaxlen, entriesread, totalentries, resume_handle); 00083 00084 return ERROR_NOT_SUPPORTED; 00085 } 00086 00087 /************************************************************ 00088 * NetShareDel (NETAPI32.@) 00089 */ 00090 NET_API_STATUS WINAPI NetShareDel(LMSTR servername, LMSTR netname, DWORD reserved) 00091 { 00092 FIXME("Stub (%s %s %d)\n", debugstr_w(servername), debugstr_w(netname), reserved); 00093 return NERR_Success; 00094 } 00095 00096 /************************************************************ 00097 * NetShareGetInfo (NETAPI32.@) 00098 */ 00099 NET_API_STATUS WINAPI NetShareGetInfo(LMSTR servername, LMSTR netname, 00100 DWORD level, LPBYTE *bufptr) 00101 { 00102 FIXME("Stub (%s %s %d %p)\n", debugstr_w(servername), 00103 debugstr_w(netname),level, bufptr); 00104 return NERR_NetNameNotFound; 00105 } 00106 00107 /************************************************************ 00108 * NetShareAdd (NETAPI32.@) 00109 */ 00110 NET_API_STATUS WINAPI NetShareAdd(LMSTR servername, 00111 DWORD level, LPBYTE buf, LPDWORD parm_err) 00112 { 00113 FIXME("Stub (%s %d %p %p)\n", debugstr_w(servername), level, buf, parm_err); 00114 return ERROR_NOT_SUPPORTED; 00115 } 00116 00117 /************************************************************ 00118 * NetFileEnum (NETAPI32.@) 00119 */ 00120 NET_API_STATUS WINAPI NetFileEnum( 00121 LPWSTR ServerName, LPWSTR BasePath, LPWSTR UserName, 00122 DWORD Level, LPBYTE* BufPtr, DWORD PrefMaxLen, 00123 LPDWORD EntriesRead, LPDWORD TotalEntries, PDWORD_PTR ResumeHandle) 00124 { 00125 FIXME("(%s, %s, %s, %u): stub\n", debugstr_w(ServerName), debugstr_w(BasePath), 00126 debugstr_w(UserName), Level); 00127 return ERROR_NOT_SUPPORTED; 00128 } Generated on Sun May 27 2012 04:25:27 for ReactOS by
1.7.6.1
|