[USER.EXE]: Add a *stub* user.exe to make the DirectX 9.0 installer happy (it searche...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 19 Jun 2017 14:24:48 +0000 (14:24 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 19 Jun 2017 14:24:48 +0000 (14:24 +0000)
Reported on https://www.reactos.org/forum/viewtopic.php?f=4&t=15576 , http://reactos.org/forum/viewtopic.php?f=4&t=16498 .
This is not a ReactOS problem per se, because it also happens on Windows, as reported here:
https://xpetips.wordpress.com/2009/09/18/installing-directx-9-0c-on-xpe/ and http://www.xpembedded.info/DirectX_v9_0c_and_finding_missing_components_.html .

svn path=/trunk/; revision=75126

reactos/subsystems/mvdm/CMakeLists.txt
reactos/subsystems/mvdm/wow16/CMakeLists.txt [new file with mode: 0644]
reactos/subsystems/mvdm/wow16/user/CMakeLists.txt [new file with mode: 0644]
reactos/subsystems/mvdm/wow16/user/user.c [new file with mode: 0644]

index 1238423..c50893c 100644 (file)
@@ -10,4 +10,4 @@ if(ARCH STREQUAL "i386")
 add_subdirectory(samples)
 endif()
 add_subdirectory(vdmdbg)
-#add_subdirectory(wow16)
+add_subdirectory(wow16)
diff --git a/reactos/subsystems/mvdm/wow16/CMakeLists.txt b/reactos/subsystems/mvdm/wow16/CMakeLists.txt
new file mode 100644 (file)
index 0000000..116218c
--- /dev/null
@@ -0,0 +1,2 @@
+
+add_subdirectory(user)
diff --git a/reactos/subsystems/mvdm/wow16/user/CMakeLists.txt b/reactos/subsystems/mvdm/wow16/user/CMakeLists.txt
new file mode 100644 (file)
index 0000000..dfe7dd9
--- /dev/null
@@ -0,0 +1,5 @@
+
+add_executable(user user.c)
+set_module_type(user win32gui ENTRYPOINT mainCRTStartup)
+add_importlibs(user msvcrt kernel32)
+add_cd_file(TARGET user DESTINATION reactos/system32 FOR all)
diff --git a/reactos/subsystems/mvdm/wow16/user/user.c b/reactos/subsystems/mvdm/wow16/user/user.c
new file mode 100644 (file)
index 0000000..cb38902
--- /dev/null
@@ -0,0 +1,25 @@
+/*
+ * COPYRIGHT:       GPL - See COPYING in the top level directory
+ * PROJECT:         ReactOS-on-ReactOS-16bit (aka. RoR16 or WoW16)
+ * FILE:            subsystems/mvdm/wow16/user.c
+ * PURPOSE:         16-bit USER stub module
+ * PROGRAMMERS:     Hermes Belusca-Maito (hermes.belusca@sfr.fr)
+ */
+
+/* INCLUDES *******************************************************************/
+
+/* PSDK Headers */
+#define WIN32_NO_STATUS
+#include <windef.h>
+#include <winbase.h>
+
+#define NDEBUG
+#include <debug.h>
+
+/* PUBLIC FUNCTIONS ***********************************************************/
+
+INT main(INT argc, const CHAR *argv[])
+{
+    OutputDebugStringA("USER.EXE: stub\n");
+    return 0;
+}