Author: ekohl
Date: Mon May 16 18:34:52 2016
New Revision: 71346

URL: http://svn.reactos.org/svn/reactos?rev=71346&view=rev
Log:
[NETAPI32]
Add NetGetAnyDCName stub.
CORE-11261 #comment Please test again!

Modified:
    trunk/reactos/dll/win32/netapi32/access.c
    trunk/reactos/dll/win32/netapi32/netapi32.spec

Modified: trunk/reactos/dll/win32/netapi32/access.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/access.c?rev=71346&r1=71345&r2=71346&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netapi32/access.c   [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/access.c   [iso-8859-1] Mon May 16 
18:34:52 2016
@@ -262,6 +262,22 @@
 }
 
 /************************************************************
+ *                NetGetAnyDCName  (NETAPI32.@)
+ *
+ *  Return the name of any domain controller (DC)
+ */
+NET_API_STATUS WINAPI
+NetGetAnyDCName(
+    _In_  LPCWSTR servername,
+    _In_  LPCWSTR domainname,
+    _Out_ LPBYTE *bufptr)
+{
+    FIXME("NetGetAnyDCName(%s, %s, %p) stub!\n", debugstr_w(servername),
+          debugstr_w(domainname), bufptr);
+    return ERROR_NO_LOGON_SERVERS;
+}
+
+/************************************************************
  *                NetEnumerateTrustedDomains  (NETAPI32.@)
  *
  * On success, *DomainNames is a multi-sz allocated using NetApiBufferAllocate

Modified: trunk/reactos/dll/win32/netapi32/netapi32.spec
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/netapi32/netapi32.spec?rev=71346&r1=71345&r2=71346&view=diff
==============================================================================
--- trunk/reactos/dll/win32/netapi32/netapi32.spec      [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/netapi32/netapi32.spec      [iso-8859-1] Mon May 16 
18:34:52 2016
@@ -147,7 +147,7 @@
 @ stub NetFileClose
 @ stdcall NetFileEnum(wstr wstr wstr long ptr long ptr ptr ptr)
 @ stub NetFileGetInfo
-@ stub NetGetAnyDCName
+@ stdcall NetGetAnyDCName(wstr wstr ptr)
 @ stdcall NetGetDCName(wstr wstr ptr)
 @ stub NetGetDisplayInformationIndex
 @ stdcall NetGetJoinInformation(wstr ptr ptr)


Reply via email to