Author: hbelusca
Date: Sat Jun 3 20:26:26 2017
New Revision: 74803
URL:
http://svn.reactos.org/svn/reactos?rev=74803&view=rev
Log:
[NTDLL][USER32]: Stub out two APIs that are called by Win32 dlls:
- ntdll.dll: RtlConvertUiListToApiList(), which is a helper used by netapi32.dll;
- user32.dll: GetWinStationInfo() (that just calls into win32k), which is called by e.g.
winmm.dll .
Added:
trunk/reactos/dll/ntdll/rtl/uilist.c (with props)
Modified:
trunk/reactos/dll/ntdll/CMakeLists.txt
trunk/reactos/dll/ntdll/def/ntdll.spec
trunk/reactos/win32ss/user/user32/misc/winsta.c
trunk/reactos/win32ss/user/user32/user32.spec
Modified: trunk/reactos/dll/ntdll/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/CMakeLists.txt?r…
==============================================================================
--- trunk/reactos/dll/ntdll/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/CMakeLists.txt [iso-8859-1] Sat Jun 3 20:26:26 2017
@@ -20,6 +20,7 @@
ldr/ldrpe.c
ldr/ldrutils.c
rtl/libsupp.c
+ rtl/uilist.c
rtl/version.c
etw/trace.c
include/ntdll.h)
Modified: trunk/reactos/dll/ntdll/def/ntdll.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/def/ntdll.spec?r…
==============================================================================
--- trunk/reactos/dll/ntdll/def/ntdll.spec [iso-8859-1] (original)
+++ trunk/reactos/dll/ntdll/def/ntdll.spec [iso-8859-1] Sat Jun 3 20:26:26 2017
@@ -502,7 +502,7 @@
501 stdcall RtlConvertSharedToExclusive(ptr)
502 stdcall RtlConvertSidToUnicodeString(ptr ptr long)
503 stdcall RtlConvertToAutoInheritSecurityObject(ptr ptr ptr ptr long ptr)
-# stdcall RtlConvertUiListToApiList
+504 stdcall RtlConvertUiListToApiList(ptr ptr long)
505 stdcall -arch=win32 -ret64 RtlConvertUlongToLargeInteger(long)
506 stdcall RtlCopyLuid(ptr ptr)
507 stdcall RtlCopyLuidAndAttributesArray(long ptr ptr)
Added: trunk/reactos/dll/ntdll/rtl/uilist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/rtl/uilist.c?rev…
==============================================================================
--- trunk/reactos/dll/ntdll/rtl/uilist.c (added)
+++ trunk/reactos/dll/ntdll/rtl/uilist.c [iso-8859-1] Sat Jun 3 20:26:26 2017
@@ -0,0 +1,40 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: ReactOS NT User-Mode DLL
+ * FILE: lib/ntdll/rtl/uilist.c
+ * PURPOSE: RTL UI to API network computers list conversion.
+ * Helper for NETAPI32.DLL
+ * PROGRAMMERS: Hermes Belusca-Maito
+ */
+
+/* INCLUDES *****************************************************************/
+
+#include <ntdll.h>
+
+#define NDEBUG
+#include <debug.h>
+
+/* FUNCTIONS ***************************************************************/
+
+/*
+ * @unimplemented
+ */
+NTSTATUS
+NTAPI
+RtlConvertUiListToApiList(
+ IN PUNICODE_STRING UiList,
+ OUT PUNICODE_STRING ApiList,
+ IN BOOLEAN SpaceAsSeparator)
+{
+ DPRINT1("RtlConvertUiListToApiList(%wZ, 0x%p, %s) called\n",
+ UiList, &ApiList, SpaceAsSeparator ? "true" :
"false");
+ UNIMPLEMENTED;
+ /*
+ * Experiments show that returning a success code but setting the
+ * ApiList length to zero is better than returning a failure code.
+ */
+ RtlInitEmptyUnicodeString(ApiList, NULL, 0);
+ return STATUS_SUCCESS;
+}
+
+/* EOF */
Propchange: trunk/reactos/dll/ntdll/rtl/uilist.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/win32ss/user/user32/misc/winsta.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/misc/w…
==============================================================================
--- trunk/reactos/win32ss/user/user32/misc/winsta.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/misc/winsta.c [iso-8859-1] Sat Jun 3 20:26:26 2017
@@ -286,6 +286,16 @@
/*
+ * @unimplemented on Win32k side
+ */
+BOOL WINAPI
+GetWinStationInfo(PVOID pUnknown)
+{
+ return (BOOL)NtUserCallOneParam((DWORD_PTR)pUnknown,
ONEPARAM_ROUTINE_GETWINSTAINFO);
+}
+
+
+/*
* @implemented
*/
HWINSTA WINAPI
Modified: trunk/reactos/win32ss/user/user32/user32.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/user32…
==============================================================================
--- trunk/reactos/win32ss/user/user32/user32.spec [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/user32.spec [iso-8859-1] Sat Jun 3 20:26:26 2017
@@ -366,7 +366,7 @@
363 stdcall GetUserObjectInformationA(long long ptr long ptr)
364 stdcall GetUserObjectInformationW(long long ptr long ptr) NtUserGetObjectInformation
365 stdcall GetUserObjectSecurity (long ptr ptr long ptr)
-# GetWinStationInfo
+366 stdcall GetWinStationInfo(ptr)
367 stdcall GetWindow(long long)
368 stdcall GetWindowContextHelpId(long)
369 stdcall GetWindowDC(long) NtUserGetWindowDC