From ec398e2908a1af3c36925fc56e03b2f00ec8e2d3 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Wed, 14 Jun 2017 13:44:11 +0000 Subject: [PATCH] [NETAPI32] - Add I_BrowserQueryEmulatedDomains and I_BrowserSetNetlogonState to the new computer browser inferface file. - Get rid of the now obsolete browsr.c file. svn path=/trunk/; revision=75039 --- reactos/dll/win32/netapi32/CMakeLists.txt | 1 - reactos/dll/win32/netapi32/browser.c | 67 +++++++++++++++++------ reactos/dll/win32/netapi32/browsr.c | 43 --------------- 3 files changed, 49 insertions(+), 62 deletions(-) delete mode 100644 reactos/dll/win32/netapi32/browsr.c diff --git a/reactos/dll/win32/netapi32/CMakeLists.txt b/reactos/dll/win32/netapi32/CMakeLists.txt index f0a69573730..273bc4b33b6 100644 --- a/reactos/dll/win32/netapi32/CMakeLists.txt +++ b/reactos/dll/win32/netapi32/CMakeLists.txt @@ -16,7 +16,6 @@ list(APPEND SOURCE access.c apibuf.c browser.c - browsr.c ds.c dssetup.c group.c diff --git a/reactos/dll/win32/netapi32/browser.c b/reactos/dll/win32/netapi32/browser.c index b5ab28935aa..6d606d831db 100644 --- a/reactos/dll/win32/netapi32/browser.c +++ b/reactos/dll/win32/netapi32/browser.c @@ -11,6 +11,7 @@ #include "netapi32.h" #include +#include #include "browser_c.h" @@ -73,18 +74,48 @@ BROWSER_IDENTIFY_HANDLE_unbind(BROWSER_IDENTIFY_HANDLE pszSystemName, } +NET_API_STATUS +WINAPI +I_BrowserQueryEmulatedDomains( + _In_opt_ LPWSTR ServerName, + _Out_ PBROWSER_EMULATED_DOMAIN *EmulatedDomains, + _Out_ LPDWORD EntriesRead) +{ + FIXME("I_BrowserQueryEmulatedDomains(%s %p %p)\n", + debugstr_w(ServerName), EmulatedDomains, EntriesRead); + + return ERROR_NOT_SUPPORTED; +} + + +NET_API_STATUS +WINAPI +I_BrowserSetNetlogonState( + _In_ LPWSTR ServerName, + _In_ LPWSTR DomainName, + _In_ LPWSTR EmulatedServerName, + _In_ DWORD Role) +{ + FIXME("I_BrowserSetNetlogonState(%s %s %s %lu)\n", + debugstr_w(ServerName), debugstr_w(ServerName), + debugstr_w(EmulatedServerName), Role); + + return ERROR_NOT_SUPPORTED; +} + + NET_API_STATUS WINAPI NetServerEnum( - LMCSTR servername, - DWORD level, - LPBYTE *bufptr, - DWORD prefmaxlen, - LPDWORD entriesread, - LPDWORD totalentries, - DWORD servertype, - LMCSTR domain, - LPDWORD resume_handle) + _In_opt_ LMCSTR servername, + _In_ DWORD level, + _Out_ LPBYTE *bufptr, + _In_ DWORD prefmaxlen, + _Out_ LPDWORD entriesread, + _Out_ LPDWORD totalentries, + _In_ DWORD servertype, + _In_opt_ LMCSTR domain, + _Inout_opt_ LPDWORD resume_handle) { FIXME("NetServerEnum(%s %lu %p %lu %p %p %lu %s %p)\n", debugstr_w(servername), level, bufptr, prefmaxlen, entriesread, @@ -97,15 +128,15 @@ NetServerEnum( NET_API_STATUS WINAPI NetServerEnumEx( - LMCSTR ServerName, - DWORD Level, - LPBYTE *Bufptr, - DWORD PrefMaxlen, - LPDWORD EntriesRead, - LPDWORD totalentries, - DWORD servertype, - LMCSTR domain, - LMCSTR FirstNameToReturn) + _In_opt_ LMCSTR ServerName, + _In_ DWORD Level, + _Out_ LPBYTE *Bufptr, + _In_ DWORD PrefMaxlen, + _Out_ LPDWORD EntriesRead, + _Out_ LPDWORD totalentries, + _In_ DWORD servertype, + _In_opt_ LMCSTR domain, + _In_opt_ LMCSTR FirstNameToReturn) { FIXME("NetServerEnumEx(%s %lu %p %lu %p %p %lu %s %s)\n", debugstr_w(ServerName), Level, Bufptr, PrefMaxlen, EntriesRead, totalentries, diff --git a/reactos/dll/win32/netapi32/browsr.c b/reactos/dll/win32/netapi32/browsr.c deleted file mode 100644 index 9ccb3dc0eac..00000000000 --- a/reactos/dll/win32/netapi32/browsr.c +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2002 Andriy Palamarchuk - * - * netapi32 browser functions - * - * 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 "netapi32.h" - -#include - -/************************************************************ - * I_BrowserSetNetlogonState (NETAPI32.@) - */ -NET_API_STATUS WINAPI I_BrowserSetNetlogonState( - LPWSTR ServerName, LPWSTR DomainName, LPWSTR EmulatedServerName, - DWORD Role) -{ - return ERROR_NOT_SUPPORTED; -} - -/************************************************************ - * I_BrowserQueryEmulatedDomains (NETAPI32.@) - */ -NET_API_STATUS WINAPI I_BrowserQueryEmulatedDomains( - LPWSTR ServerName, PBROWSER_EMULATED_DOMAIN *EmulatedDomains, - LPDWORD EntriesRead) -{ - return ERROR_NOT_SUPPORTED; -}